Category "c++sharp"

Obtaining access to Graph API without user interaction

I'm new to graph API. I'm creating an app that can access user email using Graph API. I've been using the device token method which is used here. The above code

Visual Studio does not clear error list cache of NewtonSoft JSON errors?

Visual Studio does not consider changes. Initially, I had a few libraries not properly set. Therefore, there were compile time errors. Then I added missing DLLs

How to Go To Source Code Definition (not Metadata) from C# to F# in Visual Studio?

I have a small C# Console Application that has a F# Project Reference. using System; namespace ConsoleApp1 { class Program { static void Main(s

C# map a list of abstract class objects to derived class for method overloading

I am in a situation where I am iterating a List<Animal> and want a Handler class to handle each element according to its derived type. The way I'm doing i

Specify example requests for swagger's "Try it out"

Is there a way to specify example requests for swagger? Maybe even multiple ones? The Try it out button shows only generic values like: { "firstName": "s

How to create Numeric UpDown in UWP? [closed]

I am creating a derived class of TextBox for numeric data entry. I would like to add 2 buttons at the right side, like the X button in some Te

Could not load file or assembly. The located assembly's manifest definition does not match the assembly reference

I am trying to add one of the google vision API feature in the blue prism but I am getting the error "Internal: Could not execute code stage because an exce

Allowing two projects to inherit from the same bond

Using Microsoft Bond in a C# project. Suppose I had a Bond file A used in one project A', and wanted to have two projects B' and C' have Bond files B and C bot

How to use GetAsyncKeyState in C#?

I want to know how to use it....I want to say that if I Click Up and Right Arrow (Form1_KeyDown Event) then timer1.Start(); and When I release the Up and Right

How to create one PredictEnginePool which serves multiple models?

My project is an online foods order app, the key feature of this app is the "Daily nutrients intake monitor". This monitor shows the differences of daily intake

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