Category "c++sharp"

InvalidOperationException: Can't use schemaId .. The same schemaId is already used for type

I receive the following error. InvalidOperationException: Can't use schemaId "$Registration" for type "$PortalService.Models.Registration". The same schemaId is

VSTO - Outlook how to trace email from Message ID

I'm developing a VSTO add-in for Outlook, Now I get a bounce back email, which included message ID. How can I trace the original email from this message ID in

How to add a JProperty based on conditional statement within a Json.Net object

I want to add a JProperty field in a JObject based on the result of a conditional statement, but I'm having trouble formatting the code. string zip = "00000";

ClosedXML cannot set cell data tyep to Number format with a long - v0.95.4.0

Hi all for my first question! I am using ClosedXML (great solution to go to Excel) and everything seems to work as prescribed with the exception of making/forma

IFormFile always return null in asp.net core 2.1

Here's how I upload file my Api action : [HttpPost] public async Task<BaseListResponse<MediaStorageModel>> MediaBrand(IFormFile file, int brandId)

Problems using Microsoft Identity Web App and Microsoft.AspNetCore.Identity in the same Web Project

In my currently application I need to use two different authentications: Microsoft.AspNetCore.Identity - with internal Identity tables for Customer users Micros

Avalonia UserControl checking if it is visible before before acting on a timer

I have a loading overlay (with the View inheriting from UserControl and the ViewModel from ViewModelBase) that I display over the current window by putting usin

Unity forcing physics engine to check collisions

I am creating a game in unity where the player can drag one object (a card) over another (an enemy). If they drag the card over the enemy I want to run some cod

Custom Named Property Indexers

Is there any possible way to make a property that uses an indexer other than one global one for the whole class? Here's the gist of what I want to do. Note that

Fluence Builder Inheritance with Recursive Generics

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Creational.Builder { public c

Unity Take and Throw Ball

I'm try to make Basketball hoops, I can throw ball one time, I reset game but I can not throw ball again , I don't like to reset scene. GameController is a empt

How do I disable the variable type hint for a 'var' declared variable in Rider?

In Jetbrains Rider the type of a 'var' declared variable is shown as hint by default. I don't want that. How can I get rid of it?

Inventor + Dynamo

I installed Dynamo Studio for myself and wrote in C # my dll-library, which I imported into the Dynamo project. Thus, I created my own custom-nodes for Dynamo,

ASP.NET Core 1.1 compiling with C# dynamic Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'

I'm using Visual Studio 2017 RC and started a new ASP.NET Core project targeting the full .NET Framework. This line of code will not compile. dynamic handler

Anyway to read and write .png file and link .txt file named the same as .png file?

Its made in Windows Forms at the most, in a button public Photo(string filename) { bitmap = new Bitmap(filename); /*shows the pictu

Serialize Newtonsoft JSON to byte array

What I am aiming to do is send JSON containing a header object and a compressed data in a field that is byte array. [JsonObject(MemberSerialization.OptOut)] pub

FromBody string parameter is giving null

This is probably something very basic, but I am having trouble figuring out where I am going wrong. I am trying to grab a string from the body of a POST, but

Unpackaged WinUI3 app crashes when calling Bootstrap.Initialize()

I have a WinUI3 app that I want to deploy as an unpackaged app, i.e. an app that does not use the MSIX packaging format. I followed the instructions given here:

Add new item to List object C#

I want to add new object to a list: My code: List<geo_tag> abc = new List<geo_tag>(); abc.Add(new geo_tag() { latitude = 111, longitude = 122, unit

Could not determine JSON object type for type "Class"

I got the following error while trying to add an object of type class to the JArray. Could not determine JSON object type for type "Class" Here is my code: pr