Category "c++sharp"

typescript upgrade 1.8.10 to 2.9.2 and 4.6.4 build error

I have an angular application, using typescript 1.8.10 and working fine. I like to try and upgrade typescript from 1.8.10 to 2.9.2. Once I change this setting

Why do await Task.Delay(10); stops execution in unity Web-GL?

I am using await Task.Delay(10); in unity C# for delay .After build and run in Web-GL format .The execution stops at this line that has delay .When I remove the

Binary search with recursion c#

I got stuck with my binary search method and I don't really know what I'm doing. At this moment I got 1 Error (CS0161) not all code paths return a value int l

How does it go to its first position if I don't drag the button where I want to drag it?

enter image description hereI have 9 buttons. Three are located above, 3 are located below them. All 3 buttons are on the right side. The antonyms of the words

accessing object json.`params` (reserved keyword) from (dynamic)json in c#

I am calling an api which returns some json. The format of the received json is as follows: { "method": "depth.update", "params": [ true, { "a

How to print Test Description on Extent Report in Selenium with c#?

How can I print test description for current test in Extent Report? Here is my snippet: [SetUp] public void StartUpTest() { extent.CreateTest(TestContext.Cu

ASP.NET Core Razor Read related data into table

I am trying to create a asp.net core 2.1 razor website that will load two tables on the one page. Below i have defined my classes ItemMasters and DealMasters. I

The entity type 'List<string>' requires a primary key to be defined

Getting "The entity type List<string'> requires a primary key to be defined." using .NET 6 to build a Web API. The following is my Model class defining "S

C# - format DataGridView date into messagebox

I have a datagridview connected to a sql database and everything works fine. I want to show the field "Date" (datetime on the database) formatted just as "dd/MM

How do I configure OData to use a POST with /$query on an endpoint configured with ODataAttributeRouting? I'm getting a 404

This is a follow-up to OData AspNetCore support for long URLs useing $query is not working. OData 8.0.4 In startup, I have app.UseODataQueryRequest() My Control

Mapster context is null in nested mappings

How I can use MapContext.Current in nested mappings? For example: public class Foo { public string Name { get; set; } } public class Bar { public strin

How can I create an object in C# during program execution, specify the type and assign a value?

Help me, is it possible in C# to make a dynamically created class whose number of properties and their types are not known in advance? For example, there is a P

C# Deserialize dictionary with complex properties names to JSON string

I have the following dictionary, each dictionary key potentially needs to be split by '.' and represented as json object/property/array etc. var data = new Dict

Naudio 'NoDriver calling acmFormatSuggest' error on wav exported with imovie

I am trying to convert a .wav to an .mp3 file. My code usually works but now I have gotten a .wav file that was exported with Imovie and I get the error 'NoDriv

IIS - Access denied to directories and files on the novell network

I'm trying, through the action of a button on my website, to open a file that is on my company's network. Running the application only through visual studio, th

Cannot find how to do equality for the object I am dealing with POCS collection of POCS object

Consider a simple POCS object FeeInfo (yes I know an object would normally be called simply Fee, but the usage of it makes the class name FeeInfo make more sens

OAuth2 with Gmail API - Redirect

As Google will disable the "Less secure app access" option, I'm implementing a Windows Forms Application (.NET Framework) for sending emails with OAuth. I logge

.NET Core: Event handling at calling a third party 32-bit dll from a 64-bit c#

I'm going to migrate a .NET Framework 4.* application to .NET 6. Main application is compiled as 64bit and I need to use a 32bit (.NET 6) dll hosted as out-of-p

Blazor Server set multiple default values for select drop down list

I have a Blazor server app (.net 6) page that has a select drop down list, which is set to allow multiple selected items. I need to set default values, when th

How to Get the length of the Characters in grid using Jquery in C# MVC

i want to get the number of characters in Grid from the below Jquery script Even though i tried by length(data) it shows that length is a property not a functi