Category "c++sharp"

How to change a key value pair within a nested json structure C#

Hello everyone and thanks for helping me in advance. The following question might sound silly but I'm a beginner about it. I have the following json which comes

Can i "add module" to unity editor that download without unity hub?

I downloaded unity editor from unity download archive but now i need the android build support module "also known as android SDK/NDK tools" but the "add module"

PXImport not working properly in some screens

I tried inserting the upload button on the screens below but failed to achieved the desired result. I have enabled the Allow Upload mode in Customization Projec

Why am I getting this error/warning whenever I try to use MediaPicker.PickPhotoAsync?

Whenever I use the following code in order to select a photo from my Library using my iOS simulator I get an error/warning. The image is then selected and shown

Concurrency: Detecting async-unsafe code (e.g. by detecting a forked ExecutionContext)

I have a multi-threaded codebase that manipulates a stateful object that cannot be safely used concurrently. However, it's hard to prevent concurrent usage, and

XAML DataTrigger Not Firing?

I have a property in my ModularClientModule class called ExistsOnDisk. When that property is set to false, I want to disable the CheckBox. For some reason, this

C# WebBrowser not loading local Javascript file

I am using the C# WebBrowser control. My HTML renders fine. However, I need to keep external files on the local computer. References to the local copy of fil

Why does SonarCloud show that everything is fine?

I'm working on a c# .net6 project and I'm trying to integrate SonarCloud using GitHub Actions. I have a build and sonarcloud workflow that looks like this: name

Hovering over a DataGridViewComboBoxColumn in a WinForms app in Windows 11 turns cell black (OK in Windows 10)

When we run our application on Windows 11 the DataGridView control seems to act differently. Hovering over a cell in a DataGridViewComboBoxColumn turns the cell

UNITY - Instead of a script there is a blank notepad

About five minutes ago everything was working fine, but after I restarted my pc, one of the scripts in unity stopped working. Other scripts can't access its met

Unity Physics2D.BoxCast() can not find GameObject on specific layer

I have a huge problem with the BoxCast method in Unity. I'm trying to get information if there is any GameObject under the player that is on a specific layer bu

How to realise sound effect in console-based effect for each char

How to realize sound effects in console-based effect for each char. in example: Ace Attorney dialogues I have a loop that slowly prints chars static void PrintS

Adding Google authentication to ASP.NET with Angular Visual Studio template

I have a project that I created with the ASP.NET with Angular Visual Studio template with the individual accounts authentication type. I then added Google authe

Trying center a tower on tilemap

Iam making a placement system using tilemaps, its almost done but have a small problem. Placement System As you can see the tower never be on middle of tiles, i

Why folders in VS 2019 shows red cross 'X'?

My Observation: Its for empty folders or for empty folder hierarchy. If I add the folder again then cross is removed. (I have re-sharper installed, and don't k

C# how to get an array of int* from unmanaged C++

On the unmanaged side I have short* m_pLevels[4], I need to get this array of pointers to the C# side so I can then use each point to copy from the unmanaged si

How can I skip loop for first and last element of array and set them to constant value?

I would like the loop to start from the second element and to end before the last one. So that I can set the first and last one to constant value. for (int i =

How to use IOptions pattern in Program.cs in .NET6, before builder.build()?

Using the options pattern in .NET6, I can get access to some config values as follows: builder.Services.Configure<ApiConfiguration>( builder.Configura

Handle File Upload type based on button click in Controller - MVC 5

Is there any way to handle uploading file type based on button clicked in MVC 5 Controller. Currently what is happening is all buttons redirect to same page. Al

Is there a way to pass the webdriver instance from one class to another in c# selenium?

I've been searching for a while and can't seem to find anything on c# about this, only java and other languages. Does anyone know how/if it is possible and is a