Category "c++sharp"

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

Unity Card Game Change Player Perspective

I am new to C# and Unity.. I am trying to make a simple trading card game (tcg/ccg). For this first phase, I would like to make it to be played locally eg. own-

How to prevent HttpClient.SendAsync Method from sending duplicate data

Is there away to prevent HttpClient.SendAsync method from sending duplicate data. For context purpose am getting data from one API and posting to another API I

MiniProfiler dynamic response handling in .NET 6

Recently I have integrated MiniProfiler into a .NET 6 API and all works well, can see the SQL queries via EFCore and all on the dashboard. What I would like to

How to automatically create a default constructor which sets default values

Is there any way to auto generate a constructor which looks like this: public class User { public int Id { get; set; } public string Name { get; set; }

Is it possible to show Hyperlink in System.Windows.Forms.NotifyIcon?

I'm using System.Windows.Forms.NotifyIcon in WPF app, I need to show Hyperlink in System.Windows.Forms.NotifyIcon, I tried to set the Hyperlink in BalloonTipTex

C# ConfuserEX Not working with embedded .dlls

I'm using Costura.Fody which allows users to embed dependencies as resources. In my case its embedding a .dll to my .exe... The problem is when I try to use Con

How to disable scrolling of comboBox from keys arrow Up\Down when it closed?

The arrow keys should scroll only pictureBox (placed in panel). It works fine. But it also scroll through comboBox items though it is closed (droppedUp). How to

External Provider Login .NET

I had follow this tutorial for setup External Login https://code-maze.com/external-identity-provider-aspnet-core-identity/, after when I want to test login with

Rotated Rectangle in EMGUCV over contours

Can somebody help me out please. I want to draw a rotated rectangel over my contours. i have found an Opencv code for python, but I need it for c# Emgucv. Can s