Category "c++sharp"

Entity framework core multi tenant : auto increment column based in another column value

Using entity framework core 6 with sample class public class Sample { [Key] public long Id { get; set; } public long TenantId { get; set; } public long

What does the "RayPerceptionSensore3D" compocent observe?

I'm just learning about Unity ML-agent. Does the "RayPerceptionSensor3D" component observe only tags and positions that have been hit by rays? Then, is it the s

Accessing namespace from another namespace. Is it an assembly issue? A Monobehavior issue? Syntax issue?

I'm trying to put an inventory management system (Devion Games from Unity's asset store) into the Ellen 3d Gamekit project (Also from Unity). The problem I'm fa

.NET MVC dropdown with dinamic data

I'm learning to use .NET MVC creating an app on Visual Studio. I'm trying to add a dropdown with dinamic data from one of my Models. The idea is that when a "pr

C# Selenium Webdriver

I started using selenium with CS and have one issue. When code is compiled, program cannot find webdriver path, because it's being moved into the .exe file. I f

EF Core/C#: Set many-to-many relationship with a variable field?

If you have an EF/asp.net Core app that has ads with services with a price. Where each ad can have many services (out of a predefined set of choices, like hairc

A dynamic array that changes size on one click function and being used on in another click function

I'm programming something for a school task and having a problem. I need to create an array, then I need to change its size on one-click function(the size of th

VS Code - How can I produce a strongly named assembly?

I have a class library I use for an assembly. It is comprised of three classes - classes A and B provide supporting types and methods for class C. After an asse

XmlReader stops deserializing after first array property

I have a custom list used to have features of BindingList<T> while also being XML serializable. The SBindingList<T> class is as follows: public clas

Retrieve C# Attribute Data With Extension Method

Looking for a way to retrieve attribute data for a property on a class (many different types) in my data layer with an extension method... Final goal is to see

C# access to stack object property

How can I access the objects property in this situation? Araba araba = new Araba(); araba.Renk = "mavi"; araba.fiyat = 12345; // I created this class and it wo

Is there any reason to keep array length -1 in iterations of a loop using arrays?

private static void SortArray(List<int> nums) { int buffer = 0; for(int i = 0; i < nums.Count - 1; i++) {

c# Cefsharp how to make correct sequence of JavaScript actions on the web site

These sequences of actions work with Thread.Sleep, somewhere in 1 second, somewhere in 2 seconds. I think using Thread.Sleep/Task.Delay is not good. Because it

How to make the graphics for a Graph theory undirected graph

I have been trying for the last few days to implement a graph into a C# Windows Forms app, but I have been unsuccessful at this task. I haven't been able to fin

I would like to change my Items Page from using CollectionView to ListView in xamarin.forms but I am having issues?

The above header refers. I would like to make this change so I can implement expanding lists (whereby my some of my list of items could have sub-items that can

I'm using a html.beginform to when i click in a button i go to a diferente Action, but i need to pass the values that i have inside my model aspnet c#

I'm developng a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside my

C# convert Chinese date format to English date format

I use OCR technology and recognizing date from national id card of Taiwan. My issue is that this date format is different than normal as below example 52年

Unity Tetris Game blocks sometimes not colliding

I am creating a version of Tetris which uses pentominoes instead of tetrominoes (5 square blocks instead of 4 square blocks). Some of the blocks will sometimes

How to sovle Query Issue throwing MySql.Data.MySqlClient.MySqlException

I am doing a project with C# and I have this error: MySql.Data.MySqlClient.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual

Xamarin System.ObjectDisposedException: 'Cannot access a closed Stream.'

I'm working on a mobile project with Xamarin Forms and I have this error in particulary case but, it's impossible to use the debuger to fix it. System.ObjectDis