Category "c++sharp"

Cannot parse the data from CSV file if there is an enter key pressed between two words in same cell

I am trying to parse the csv file using the following code string[] EachColumnData = null; EachColumnData = line.Replace("\",\"", "|").Replace(",,", "||").Repl

How do I check if a tree object is really close to another in unity?

I have been making a survival game in unity and I have generated the trees with the below function The GenerateTree function void GenerateTree(int x, int y)

Queuing async tasks and passing back result to caller

In my app I have a single Client class responsible to do communication via TCP/IP and I have several async Processes posting "work" to the Client class. What I

dotnet restore in Github Actions gives 401 unauthorized

a NET6 project on Github cannot be dotnet-restored in Github Actions. dotnet restore works fine locally. Looking at the Action logs, it seems GH looks for Micro

C# Image 0,0 start point is not top left for all images

I have a folder with images and I want to draw a rectangle from the top left corner This is the code I am using: Image image = Image.FromFile(path +

Invalid Key Length in NodeJS, but Valid Key Length in C#

I'm converting Rijndael decryption from C# to NodeJS. The Key (or Passphrase) used is 13 characters long. The IV used is 17 characters long. Note: I have no con

ConcurrentDictionary performance

I am struggling with this problem and would really appreciate any help. I'm working on an existing project. I have added logic that counts values combinations,

IdentityServer 3 returns invalid_client when trying to authenticate with Blazor

I have an old IdentityServer 3 implementation and I'm trying not to change it to a newer version, I have been trying to authenticate a Blazor wasm application w

Calculating room length issue

I want to get the length and width values of a room within Revit but it appears that Revit does not give access to these values like it does with room perimeter

Can't resolve symbol "FirstOrDefaultAsync" in .Net Core Web API

I'm building a .Net Core Web API and in one of the files the FirstOrDefaultAsync() method just doesn't work although I'm using it in various files in the same p

How to detect whether the Mouse Hovers above a drawn line in C#

I have a panel on a form. On this panel there are drawn a few lines. I would like to know how to detect when the Mouse is above one of the lines and get the det

Xamarin Binding error: java.lang.NoSuchMethodError: No virtual method build()Lcom/google/android/exoplayer2/DefaultLoadControl

I have created a Binding Library for Triton Digital Mobile SDK and integrated it on my Xamarin.Android project. I have added this code to my project to test the

Add one object in list nested entity in EF Core

I create a repository layer in my app. I don't need all list EntityList. I want add in Foo.EntityList 1 object which equals entityId, and return foo in notImpor

Copy common properties between objects in c#

Given this scenario: internal class FullLogin { public string username { get; set; } public string password { get; set; } public str

Change request Content-Type to allow invalid/unsupported request Content-Types

A client is currently sending our ASP.NET 4.x/Core REST APIs the correct request payload but invalid request Content-Type which is resulting in 415 status codes

Google Api authorize an App running in the console

I want to manually authorize an app that runs in the console where there is no browser available. Basically I need the same code as they are using on this websi

Handle SwapChainPanel in ListView

I have my xaml code <ListView x:Name="ListVideo" ItemsSource="{x:Bind ScreenList}" VerticalAlignment="Stretch" Flow

C# find JSON value based only on Key name through multiple levels of array

I have a variety of input JSON formatted data which all contain a particular key-name terminalSize. This is the only piece I know. The total number of JSON tree

Blazor Server .Net 6 Massive Spike in IDX20803/IDX20804 Errors Suddenly

We received this error suddenly on our App Service hosting a Blazor server application on .Net 6. We resolved it by redeploying. However, I am unable to find th

How do i pass in the arguments for DateTime so it corresponds to the required formal Parameter in C#

How do I pass in the arguments for DateTime so it corresponds to the required formal parameter? Int, string and double are NO problem, but this is giving me tru