Category "c++sharp"

How do I make inheritance work from component class?

Im trying to access Ids from a component class in an If statement but I get the error saying that it does not exist in the current context (CS0103). Here is my

C# Cannot implicitly convert type 'string' to 'int'

I get Error when try to set value for (a.Hinta ) to (HintaTextB.Text) in third code block. public bool saveAutoIntoDatabase(Auto newAuto) { bool

What is the difference between using AsyncOperation and not using AsyncOperation to show progress in UnityWebRequest?

I wrote a script that simply downloads a text file using UnityWebRequest. (I set the text size to 50 MB to see meaningful progress.) private IEnumerator GetRequ

How do you move data from one cell in one row of a web grid to another cell in another row that is empty using jQuery?

I am kind of lost when it comes to jQuery sometimes, though I know there is a way! How do you update or move three cells data to another row based on the rows i

Multiple actions were found that match the request - Net Framework 4.6.1

I have the following endpoints in my project A -> http://localhost:8089/products/ B -> http://localhost:8089/products/{id} I need to add the following: C

Using appsettings in Azure function

This is a follow up question to this question: appsettings.json and azure function by timer I want to have dynamic settings which I can change without redeployi

Bootstrap 5 Show Modal Code Behind (Asp.net C#)

I tried everything but I couldn't success it. <script type="text/javascript"> function openModal() { var myModal = new bootstrap.Modal(doc

streamWriter does not apply changes until I restart my game

I'm making a game in Unity with an editor level that writes the level data in a .txt My problem is that changes to the file are not applying correctly because I

preventing the item to add to the dictionary

In addition to this question: I want to create a hierarchical list in a 3 level category. My data are in the following ways: var appCategoryList = new List<A

How to use Performance Profiler with Instrumentation on Asp.net Core app in Visual Studio 2022

How do you get instrumentation performance data from an ASP.NET Core web app using VS 2022 tools? We now an app with an ASP.NET Core Web API and MVC app pair. T

how to create a godot project directly from visual studio 2019

is it possible to create a new Godot project just like creating a new c# form app in visual studio ?

C# - Adding condition to func results in stack overflow exception

I have a func as part of specification class which sorts the given iqueryable Func<IQueryable<T>, IOrderedQueryable<T>>? Sort { get; set; } W

Azure sign-in into two different applications (with two different users) using OpenIdConnect middleware

I have two Azure enterprise applications to which I need the user to sign in. He might sign in with different active directory users. The 1st app is used to aut

Azure Storage (classic) vs Azure Storage (V2) code not working for V2 storage

I have a worker role running and checking to see if data exists in a storage hosted on Azure. My code works when I use the connection string for a classic type

c# Microsoft Graph permissions to read mails

I have the following list of permissions on Azure AD: my ASP.NET Web Core app has the following config: { "AzureAd": { "Instance": "https://login.microso

Can I use different namespace as variable depending on the configuration?

For example, I have two namespaces, provided by other dlls. and cannot be modified. namespace A_Build { public class D {} public class E {} } namespace A

How to projection fields for a dictionary (C#, MongdoDB)

I am trying my luck here, I have a model which is like the following public class RowData : BaseBsonDefinition { . [BsonExtraElements] [BsonDictionaryOption

How to avoid duplication logic in the code?

I have two methods: static public async Task Delete( Guid id, string path, ViewModelCollection<ProfileData> collection ) {

Error while fetching data using FindAsync in C#

I am getting this error "A second operation started on this context before a previous operation completed. This is usually caused by different threads using

IndexOutOfRange (IsAllDigits Method)

I am novice in C# and just learning it. I am sure that you will consider this question dumb but I really can't understand the real reason for the following in t