Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [c#]

C# (pronounced "see sharp") is a high-level, statically typed, multi-paradigm programming language developed by Microsoft. C# code usually targets Microsoft's .NET ecosystem, which include .NET, .NET Framework, .NET MAUI, and Xamarin among others. Use this tag for questions about code written in C# or about C#'s formal specification.

0 votes
0 answers
17 views

How to draw a node in some given coordinates

Can`t draw node with specified coordinates on gViewer. Try to use code from this question Change Node position in MSAGL , but it doesn`t work. Form form = new (); GViewer viewer = new (...
TA1989's user avatar
  • 11
1 vote
0 answers
28 views

How to make a redirect after Login into Account

I use JWT token, send a request to receive a token, receive a token, how can I make a redirection in a convenient form after successfully completing the authentication procedure? I tried to do this ...
CriticalError's user avatar
0 votes
0 answers
10 views

Connecting Client and Host grave issues in unity multiplayer game

Where do I even begin with this one. I'm currently making a multiplayer game on unity, using Netcode for Gameobjects. I've made sure to check the online functionality after each addition to ensure it ...
Bobcat's user avatar
  • 3
0 votes
0 answers
13 views

What is the Mapperly equivalent of AfterMap method in Automapper?

I'm trying to replace AutoMapper with Mapperly in our project due to the latter's performance. However, I'm facing difficulty while replacing AutoMapper with Mapperly because I can't find any ...
Rama Rahul's user avatar
-1 votes
1 answer
24 views

Password visibility is not showing in chrome and firefox

I am currently developing a C# application and aiming to ensure compatibility across all major web browsers. However, I've encountered an issue specifically with the password visibility icon. This ...
Pam's user avatar
  • 15
0 votes
0 answers
23 views

What is the common way to handle CS8602 in a WPF RelayCommand?

If a nullable property gets used in the Execute part of a RelayCommand, and that property is already checked against null in the CanExecute method, what is the proper way to handle the CS8602: ...
bil-bal's user avatar
1 vote
1 answer
22 views

Why do I have to specify the runtime identifier in the csproj for a publish?

I am doing the following to build my application: dotnet build MyApp.sln -c Release dotnet test MyApp.sln --no-build -c Release dotnet publish MyApp.csproj --no-build -c Release -r win-x64 The aim ...
fharreau's user avatar
  • 2,265
-1 votes
0 answers
12 views

I was doing a camera calibration system, based on a series of images

using OpenCvSharp; using System; using System.Collections.Generic; using System.IO; class CameraCalibration { static void Main() { Size chessboardSize = new Size(5, 8); Size ...
Digital Boost's user avatar
0 votes
0 answers
17 views

Overflow or underflow in the arithmetic operation error in ASP.NET Web API OData application

I have written an ASP.NET Web API OData application in which I am returning a single object which is working fine. Now my requirement is to return multiple entities from the GET request. While trying ...
Roger Holland's user avatar
1 vote
1 answer
38 views

Accessing pointer fields through properties

Is it possible to avoid overhead of property-method call in this case (somehow forcing compiler inline? I know this more like an Alias but there is no such thing in C#): unsafe public static class ...
SuRGeoNix's user avatar
  • 617
0 votes
0 answers
9 views

Unity - How detect dynamic island in Apple phones?

How detect dynamic island in Apple phones? Or do automatic offset, setup in Unity or Xcode? I found a similar problem here but it's probably directly for coding in Xcode. In Xcode, I can only manage ...
Lukáš Hotárek's user avatar
0 votes
0 answers
13 views

Validation gets lost on tab change

I am using a tab control to group different input fields like text boxes. I am validating the user input of those text boxes via IDataErrorInfo in my view model. Now, when the user input is not valid ...
J. Meyer's user avatar
0 votes
0 answers
9 views

How to Close ISWebCombo Dropdown After Selecting a Value with AutoPostback Enabled?

I'm using an ISWebCombo dropdown control in my ASP.NET Web Forms application. The dropdown does not close automatically when I select a value. I need it to close after selection. <ISWebCombo:...
parangat's user avatar
0 votes
1 answer
10 views

.ASPXAUTH cookie not being read by sub application

I have an asp.net v4.7.2 web app setup at, my.example.com in IIS. It uses asp.net Forms Authentication. It's Web.Config: <httpCookies requireSSL="true" /> <authentication mode=&...
Vaibhav Garg's user avatar
  • 3,689
0 votes
0 answers
27 views

.Net Maui ArgumentException: 'An item with the same key has already been added. Key: Microsoft.Maui.Controls.BindableProperty' - What does that mean?

I'm really at a loss here. I'm working on a .Net Maui Application for Android and iOS for work. When I open a specific page I sometimes (like, maybe 1 out of 6-10 times) get an Error with this message:...
Freddy V's user avatar

15 30 50 per page