Category "c++sharp"

Converting a POCO object with JsonPropertyName decorations into a URL query string

Is there an .NET API to convert a POCO object with JsonPropertyName decorations into a properly encoded URL query string? For example, for: public record AuthEn

Resources.UpdateConfiguration is obsolete

I want to prevent system font-size changing, effects to my xamarin forms android application. I tried with below code in MainActivity.cs and its working, but it

Could not load file or assembly... An attempt was made to load a program with an incorrect format

I am having issues with a dll that I made reference to in a visual studio website project. It works fine on my local machine. The file is in the bin folder of t

How to move the debug pointer to change the execution flow in Visual Studio Code Debugger

I have used Visual Studio 2008 to 2017, all having this feature as shown below: The yellow arrow(debug pointer) which can be used to manipulate executing line(

How to include XmlComments for Swagger in only one API Controller (not all Controllers in the same project)?

I'm trying to add more information about one of my API routes using Swashbuckle. I only need to enable XML comments files in Swagger for one of my API routes. B

Outlook interop code throws "message has been changed" error the second time when the code tries to save a mail item

First of all, this problem only happens on a few client machines and I can not replicate it on any of my test machines. So I have the following test code in LI

Signin error about twitter and unity in Firebase

Already found the reason: You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you&r

How do I keep my Async method thread safe?

I need to write a method in my Windows Universal App to write to the SD card. How can I ensure two threads do not try to write to the same file at the same tim

Export to excel in c# results in System.OutOfMemoryException

I have a DataTable with 200,000 rows. I want to export DataTable in excel file. But it gives System.OutOfMemoryException error. using (ExcelPackage objExcelPa

Re-queue message on exception

I'm looking for a solid way of re-queuing messages that couldn't be handled properly - at this time. I've been looking at http://dotnetcodr.com/2014/06/16/rabb

MSBUILD throws error: The SDK 'Microsoft.NET.Sdk' specified could not be found

I'm trying to build a solution using msbuild command line and I keep getting this error: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be foun

Is there way to authenticate to Graph API using Username and Password without Application Registration in Azure AD

I'm creating an app that needs to authenticate to multiple Office 365 applications in differing tenants using the Graph API. If I follow Microsoft's guidance I

Java collection like c# KeyedColllection<TKey,TItem>

Is there a Java collection that has the same behavior as the c# abstract KeyedCollection class (that is items can be retrieved by both key and index)? I have l

IsPointerOverGameObject always returns false for touch

IsPointerOverGameObject always returns false for touch. I have tried all solutions that I could find. It works perfectly in Editor - clicks are blocked from fa

Passing JSON Data over TCP, Socket programming c#

I have created a desktop software server system, which accepts string from client and insert into database, here is the server code public class TcpServer {

"the layout could not be loaded: layout resource could not be found" xamarin android vs 2019

everytime i create a new layout.axml i get the message the layout could not be loaded: layout resource could not be found upon creation and i am new to program

I want to create a 30x30 matrix array of 1s and 0s

I want to create a 30x30 matrix array of 1s and 0s. This will be a maze with 1's being the path and 0's being a wall. but this labyrinth should contain a way gu

Swagger not loading - Failed to load API definition: Fetch error undefined

Trying to setup swagger in conjunction with a web application hosted on IIS express. API is built using ASP Net Core. I have followed the instructions prescribe

Spiral matrix with entered rows and columns

As an assignment i have to create a spiral matrix where the user inputs the number of rows and number of columns. This is my code for far (first year in colleg

Additional probing paths for .NET Core 3 migration

Short version of the question: Is there any way in .NET Core 3 to specify a local probing path, using the same rules as the <probing> element from app.con