Category "c++sharp"

How to guarantee a unique id without using GUID?

My multi-threaded program for invoice management's invoice class: public class Invoice { [BsonId] public ObjectId Id { get; set; } p

How to use a usercontrol from another project in the same solution

I have 2 projets in a visual studio solution: Text Adventure Game Text Adventure Maker The project "Text adventure Maker" have a userControl. I want to use this

Any idea why private property and variable behave differently in FileHelpers?

To simplify the case, let say I have the following class public class TestFileHelpersClass { [FieldOrder(1), FieldFixedLength(20), FieldTrim(Tri

How to set the ContentPage Title StringFormat through boolean binding and DataTriggers in Xamarin.Forms

I have created a "Mobile App (Xamarin.Forms)" project in VS 2019: and then I chose the "Flyout" option: I modified two of the auto-generated classes: ItemDeta

Try to do methods C#

I can try to do method for change length of array. But newArray not visible in main... What can i do for? I am a begginer and need some help internal class

Azure Function RabbitMq trigger stops receiving messages

I have Azure Function with RabbitMq trigger and it stops receiving any messages after certain time. The function is deployed in Azure. When I stop and then star

Multiple micro service or console application that read from a single table

I need to read millions of records from a sqlserver table through a microservice that does block reads in parallel. each instantiated microservice performs the

Add property to all responses in asp.net core

I have an API with multiple endpoints. I'd like to add a property to all endpoint responses, without adding it to each endpoint response model individually. Ex:

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