C#
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
Join ServerC#
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
Join ServerCommunity questions
Channels
❔ why new is needed for reference types
When I assign an variable x of type int to 10 is 10 just binary in the computer or an object of the int class.
And what does it mean for to store references to your data and how is that the same as an object
❔ Web stack and connecting C# backend w/ Next.js frontend
For me as for someone new int...
✅ Installing the .NET SDK on Ubuntu 23.04
❔ Get Informations of Form 1 in Form 2
How can i do this?
uint value comparison for a 32 layer system (GameDev)
Description
How it works is that if the toggle is on, it returns the corresponding uint value and if it is off it returns zero. If we take top row for example, it goes from and index of 31 backwards to an index of 1. All these values that the toggles represents get added on top of each other and that results in the actual uint value. Taking the toggles on the top row as an example a...
Retrieving message from a UDP socket
❔ Create a custom register/login razor views for my Blazor identity.
❔ LLVM problem with creating number
public (Context, LLVMValueRef) VisitNumber(Context ctx, NumberAST expr)
{
LLVMTypeRef typeRef = LLVMTypeRef.Double;
if (expr.Type == typeof(long)) typeRef = LLVMTypeRef.Int64;
else if (expr.Type == typeof(int)) typeRef = LLVMTypeRef.Int32;
else if (expr.Type == typeof(short)) typeRef = LLVMTypeRef.Int16;
else if (expr.Type == typeof(sbyte)) typeRef = LLVMTypeRef.Int8;
else if (expr.Type == typeof(ulong)) typeRef = LLVMTypeRef.Int64;
else if (expr.Type == typeof...
❔ Error in iOS MAUI app when trying to use WebAuthenticator
```
Foundation.NSErrorException: Error Domain=com.apple.AuthenticationServices.WebAuthenticationSession Code=3 "The UIWindowScene for...
❔ wwwroot only working in IIS express, not http
i have a simple razor pages web app, but wwwroot will not work whatsoever if i choose http, but if i choose iis express, it works just fine. Why is this happening? I don't know what code or logs i shouuld also show
✅ Cant access base parameter in children partial class
Inventory Maintence Project Issue
❔ Factory Design method pattern
```cs
public interface IOperator
{
public double Calc(double x, double y);
}
public class Add : IOperator
{
public double Calc(double x, double y) => x+ y;
}
//not sure how to do it
public class Div : IOperator
{
public double Calc...
❔ Is there a way to make this more cleaner?
<div class="buttons">
<div class="dropdown">
<a button type="button" class="btn btn-success">
<svg>
<path></path>
</svg>
Add a new habit
</a>
<a button type="button" class="btn btn-success">
<svg>
<path></path>
</svg>
Log a habit
</a>
@<div class="dropdown">@
<button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="tru...
Is there a way to determine if a Winforms .exe is run by double clicking on it on Windows explorer?
❔ Recommended way to follow developments in C# / .NET world?
✅ dotnet add reference in vscode
❔ win form app desinger app erorr
Error CS1061 'Form1' does not contain a definition for 'Form1_load' and no accessible extension method 'Form1_load' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?) ödev C:\Users\cengiz\source\reposödevödev\Form1.Designer.cs 147 Active
this error