Category "c++sharp"

Ocelot Failed to match Route configuration for upstream path

Hello Now I am trying to use Ocelot gateway Normally I have one api in different server such as https://server_domain.net/kpiDashboardApi without gateway if I

INotifyPropertyChanged vs BindableObject vs ObservableObject in Xamarin.Forms/MAUI

I have a hard time understanding the difference between those 3 things when creating a project using Xamarin.Forms or MAUI. I know what these are - INotifyPrope

Using abstract class property in interface in C# [duplicate]

I am trying to deal with a problem of with interfaces and implementations. See code below. public interface IMachine { string Name { get;

How can I avoid code duplication in Unity3d?

How can I shorten this code and avoid copying, what do you advise? The method is used to move the camera in space using buttons private void HandleMovementInpu

C# Calculator program reading and writing calculations to a file

I need to be able to save and load answers that are entered by the User in a simple calculator program. Where should I put the code to read and write in the fol

How do I make the hello world execute in C# terminal

am trying to find out why my C# 'hello world' program isn't running after installation and set up. this is my code below using System; namespace mysharpproject

How to make a report in crystal report that its columns' number may changes anytime

I am working on a report in crystal-report which its columns are the days of month and as you know the number of the days changes every month. So my question is

WPF Textbox Validation Error binded to Variable

In a .xaml file, I have a number of Textbox objects that are linked to data paths as such: <TextBox Text="{Binding Path=Var1}"> These variables (like Var

Assigning global variables within a local function in C#

I have a program where I am assigning several variables from within a function. When I do the assignments manually it seems to work, but if I write a helper fun

Automapper - Map setup from collection<double> failing

I have a Automapper setup that was working on the v10 version but since i updated it to the latest v11, it wont work anymore. I have no clue what could be the i

How can I tell another script to instantiate a special prefab in Unity?

I have code that generate order of obstacles: using UnityEngine; using System.Collections.Generic; public class GroundSpawner : MonoBehaviour { public G

Why does my Xamarin.Mac application crash when I enable the Hardened Runtime in order to notarize it?

I am developping an app using .NET Framework 4.5.2 under Visual Studio for Mac. Apple has added security features to their latest Mac versions, so I'd like to n

Determ if a System Tray is expanded

is it possible to determ if the Windows Systems tray is expanded or alternativly if a click on the expand icon (small arrow) is happend? I could not found anyth

How to make adding controls in a WPF application faster

I'm working on a WPF app that lets users edit data records. For a test, I'm adding 50 rows to a tree view and this takes ~200ms. This creates noticable stutter

Unable to Extend HttpContent Class

There seems to be something I am missing when trying to extend HttpContent so can anyone let me know if they have been successful in the past at doing this? The

C# Broadcasting message on server to remote client

I'm trying to broadcast a message from server to a remote client, my problem is that I'm not able to receive the message on the client, the approach I'm current

How to suppress compiler errors within vctmp.cshtml files in Visual Studio?

Whenever I open a temporary cshtml file or compare the difference between the files, the compiler shows a bunch of errors. It's unable to resolve razor syntax d

Convert Json to List of Object

I am calling an API using: HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(path); String content = await response.C

.NET Core throws Kestrel error on startup when using Azure Container Instances, Caddy

I'm fumbling through my first exploration into docker containers with .NET. My local development environment is good to go - I've got my dev certs created and s

WPF RichTextBox - How to get second line?

I would like to choose the second or other line from RichTextbox instead of the first or last line. I know this is the code for selecting the first line and the