Category "c++sharp"

System.IO.BACnet - send ReadPropertyMultiple without specifying BacnetPropertyReference->propertyArrayIndex

I am using System.IO.BACnet library for my C# BACNet client. I am trying to send to server "ReadPropertyMultiple" request, however I am unable to read non-array

WaitForSeconds is not scaling with Time.TimeScale

I have a script in a game which stuns a target and throws them up into the air. The problem is, the yield return new WaitForSeconds(0.01f), and by extension the

WaitForSeconds is not scaling with Time.TimeScale

I have a script in a game which stuns a target and throws them up into the air. The problem is, the yield return new WaitForSeconds(0.01f), and by extension the

List.Remove All not removing the negative numbers from textfile

Here's what I want this code to do. Read the textfile random.txt into a List For each line of the textfile read into the list I want to determine if it is posit

In Visual Studio 2022, publish to IIS returns a build error, but publish to Folder is ok (and it was all working fine before)

I've updated Visual Studio 2022 to 17.1.0 recently and I now have this weird error, but not on every project (on only one up to now). I've tested other project

How to add the Default-Line material back to the LineRenderer material?

If i'm starting with the linerenderer materials and the first place is empty without any material the linerenderer is pink and then i'm trying to add the Defaul

Game transfer from PC to Android (Unity)

I have a question. Since I was making my game(2D) in UNITY to work for PC, and now I want to switch platform for ANDROID. So my question is, can I put both cont

How can I apply datatable to my other page

Layout page,Datatable Js and css added here Here is Category Index Page Datatable is working here Here is Product Index Page Datable is not working even though

WPF Drawing Wheel Color Picker?

I'm have try drawing color picker by Ellipse LinearGradientBrush. <Ellipse Width="200" Height="200"> <Ellipse.Fill> <VisualBrush Tile

How to use class object instead of using JObject in .NET Core

I want to return C# class object instead of using JObject in here. Could someone can tell me how to use it. private async Task<JObject> GetReceiptById(str

How can I Delete an Item from a Data Grid View and Reflect the Deletion in the MySql Database

UPDATE There has been quite a few changes in the code, but the problem still persists. I was able to delete from the customer table (and the entire row on the D

Prevent authentication bypass via response manipulation with ASP.NET Core Identity implementation

Web application has asp.net core identity implementation, in security testing of our application vulnerability is found-authentication bypass via response manip

Decorator @property on ASP net core like in django

The thing is that like in Django which you can add model properties without changing the model class using the @property decorator. I'm trying to achieve same w

How to add CancellationToken on Unity Web request?

I wrote the following code that successfully downloads a photo from the link. But I want to set a cancellationToken for the request that can be activated by pre

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