Category "c++sharp"

Get the JSON Schema's from a large OpenAPI Document OR using NewtonSoft and resolve refs

I'm currently looking extracting all of the JSON Schemas from a large OpenAPI spec. I've been using the following NuGet packages: Microsoft.OpenApi v1.3.1 Micro

Multiple SQL Server statements do not work on same form

I am working on a C# project with a Microsoft SQL Server database. This is how I have connected the database: DataSet ds_display = new DataSet(); SqlDataAdapte

Outlook VSTO - Get all items in a group calendar

I am looking for a way to access a group calendar in Outlook VSTO Add-In. I am only able to search the default calendar in outlook. I have shared an image from

Any way to make use of ImageClassificationInstance in C#?

I keep getting Grpc.Core.RpcException: Status(StatusCode="Unimplemented" ... exception when I try to use the ImageClassificationInstance objects to classify usi

Decoding API data with RestClient

I am not entirely sure how to do this or really where to begin, I can't seem to find any information pointing me in the correct direction. I am calling an API a

ASP NET Core 6 MVC Slow page loading

I am trying to upgrade an old ASP .NET project from Framework 4.5 to Core .NET 6. Going well so far, but I noticed the page loading was way longer than before.

Random minvalue cannot be greater than maxvalue

I am trying to make a console based application in which the program will subtract two random numbers from a range provided by the user but when i enter the val

DataSet Parent-Child Nested Relation in Blazor

Is DataSet Parent-Child nested relation available in blazor? if yes, how to apply or use it? Thanks.

Reading a XML file using C# not working for some xml files

I need to read following xml file. I've used XML and LINQ but neither of them show any values.I can't find any mistakes on the code. I've followed This example

When I try to print the copy string on console then instead of string they show me some "Element (id = 5131abe8-3c52-4e18-8eb6-3abedb48e19d)"

IWebElement link = driver.FindElement(By.XPath("/html[1]/body[1]/div[3]/div[1]/div[1]/div[1]/div[2]/div[1]/button[1]")); link.Click(); S

How to elevate my winform privileges (at runtime) to admin on button press

I am developing an application that should not require elevated privileges unless the user wants to change a network adapter's IP address. I would like to allow

Writing multithreaded code to generate incremental index

I want to write a code in following scenario : we want to design an invoice generator.this invoice generator also generates an incremental invoice no .Also note

C sharp code terminates without exception

I have this code: public static bool Run(IntPtr handle, IntPtr imethodName, IntPtr iobject, IntPtr itransaction, IntPtr imethod ) { try { Stri

How to use default interface methods in specific class?

public interface IPrinter { public void Print() { Console.WriteLine("Printing..."); } } public interface IScanner { public void Scan()

Best way to call and access powershell script in ASP.NET Core project

I have a PowerShell script which I have to call in an ASP.NET Core Web API solution. What is the best way to use the PowerShell script in an ASP.NET Cre Web API

How to get dropdownlistFor selected value in controller in form of string in MVC

enter image description here Instead of "A+" i need that value which is selected by user from dropdown list.

Asp.net 4.8 WebForms authorization using Owin OpenId Connect Authentication (app.UseOpenIdConnectAuthentication)

I am encountering an infinite redirect loop between login.microsoftonline.com and my application. My project is implementing authentication and authorization in

UnauthorizedAccessException when accessing a Windows file share from .NET Core app

I have an application written in .NET 5 ( soon to be .NET 6 ) that allows users to access files stored on a bunch of different user defined Windows network shar

Suggestion on NavMesh 2D generation at runtime with infinite procedural generation [duplicate]

Let me start off by saying I began my jounrey of programming within the last year and Unity about the same time. I have come a long way since

How do I set the default c# file in my Visual Studio Code c# Project?

I am new to using Visual Studio Code. I have always used Visual Studio IDE in Windows. I am trying to run a simple Hello World Program on Mac with VS Code. I ra