Category "c++sharp"

Why is my header data missing from my Azure Function Http Trigger in .Net 5 when calling from HttpClient.GetAsync

I have a client using HttpClient.GetAsync to call into a Azure Function Http Trigger in .Net 5. When I call the function using PostMan, I get my custom header d

C# Convert Integer into Roman Numeral and Number in Words

I need a help because I've created a program wherein if the user inputs enter an integer number then it will convert the number into Roman Numerals and in Words

Can Serilog capture method parameters

I am playing with Serilog and capturing all sorts of great information when an exception is thrown. This new test however is not producing quite as much informa

unity isn't registering the collsion between my player and the obstacles

I have tried for some time to fix the problem I'm having, I've looked at tons of different websites and I can't find what is wrong with my script. The player (W

Cannot display record to DataGridView in winforms

This is what my table "Item" look like in my database: Now, I want to display it inside my winforms application. My application include the main page that look

VS Code file explorer won't show certain files or directories in some projects

I have what appears to be a weird problem. In some project folders when I open them in VS Code I don't see the entire directory tree in the file explorer, some

Subscriptions are not creating in the report server database

I have written the code to create the subscriptions by adding the reference to ReportService2010.asmx. Please see the below screenshot for code and result [Id =

Unity - Make character look at mouse with New input system/Character Controller

Been following this guide https://youtu.be/bXNFxQpp2qk?t=1280 for Character Controller. This got me getting basic movement working and at time 21:20 he creates

Crossthread databinding in NotifyPropertyChanged for DataGridView Control

When trying to update a displayTimer (duration for how long a specific orderline is taking), I get a Crossthread error in NotifyPropertyChanged for my DisplayTi

Accepting body with generic type

I'm creating a web API that accepts a custom object. This works when someone does a POST request in JSON format. But now I have someone asking if they can post

.NET JsonDeserializer fails when I rename List<> property with JsonProperty

I'm trying to deserialize json that looks like this: { "Total": 1, "Page": 1, "Products": [ { "ID": "524c20a3-a8ec-44f2-9685-311f1f7d1498",

Revit failed to Load ImagePath

i try to Place a Temporary In-Canvas Graphic in Revit like this: var activeUiDoc = document.Application.ActiveUIDocument; var activeDbDoc = activeUiDoc.

Razor Pages Cannot Read File with build action "Content" Properties

I have a resources file name "Index.en-US.resx", initially it was "embedded resources" build action and it worked well in localization. But when it is "embedded

How do I detect and then base an action off of when one of my generated buttons(from a 2D button array) is clicked

So i am generating buttons like this and what i need to do is make those buttons disappear when they are clicked. { Button[,] buttonArray =

MSBuild not publishing Web.config to the root of the publish folder

I'm running the following MSBuild command from PowerShell to publish a solution file: $Configuration = "Release" $slnFullPath = "...\Solution.sln"; $PublishPath

Blob version information in blob trigger

I currently work on a blobtrigger that gets triggered everytime a blob has been created, a new version of a blob has been uploaded (so a blob has changed) or an

Make a method both static and instance [closed]

I have a class called Foo and a static method - Bar (Foo instance) - inside it. But instead of only being able to call it like Foo.Bar(new Foo

In Expressive Annotations using the AssertThat attribute - how to modify the error message at runtime or pass in string values

In Expressive Annotations, using the "AssertThat" attribute is it possible to modify the error message at runtime? I am working in ASP.NET MVC Classic environme

C# Generic method for getting field names based on attributes

I am trying to make a generic method to be used in a lot of places in my code I can make it work with the following code: public static void GetFieldNames(Syste

I keep getting a "scriptcs" error in my C# code for Unity. Nothing I've seen on the internet is working

here is the code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class CarDrive : MonoBehaviour { [SerializedField]