Are internal properties deserializable?
I noticed I can't deserialize a class with internal properties. I tried a bunch of work-around solutions, but they didn’t work out. Once I declare the properties public, it just works.

✅ How does SDK versioning work?
I.E. Version 9 of the .NET SDK supports targeting versions of .NET other than just 9. Which ones? At what point does a target get removed from the latest SDK version? I'm not seeing anything in documentation that really specifies this.
More specifically, I have .NET SDK 9 installed and I'm getting errors trying to build a project that includes .NET 5 in its targets. Does SDK 9 not support .NET 5, or is there some other issue going on? How far back do I need to go in SDKs to get .NET 5 targeting?...
✅ How to deserialize as fast as possible?
```cpp
var context = new MessageQueueBatchContext
{
Batch = [
new MessageQueueContext("Test Message"u8.ToArray()),...
✅ How is Environment.UserInteractive set on Linux?
I am launching a subprocess from another program on Linux, which then tries to do this:
...
c#
if (Environment.UserInteractive)
Console.ReadKey();
c#
if (Environment.UserInteractive)
Console.ReadKey();
✅ SignalR Not working
this is a signalr for frontend generated by ai but even this or my own doesnt work, ports are correct connection is made _hubConnection state prints Connected, but when i click button Send with a message nothing happens, other buttons work, Console.WriteLine("EEE"); never prints i need help, the backend is good i have mapped the /chathub and ports are correct i have a frontend web app server and a core web api backend
✅ Template project not visible in VS
Hi, creating a template project for a new project I'm working on.
The template project generates all the classes needed to setup a new endpoint. Its all working via the cli but cant for the life of me workout how to get it too show up in VS add new item dialog window - https://github.com/IeuanWalker/MinimalApi.Endpoints/tree/TemplatePack/src/IeuanWalker.MinimalApi.Endpoints.TemplatePack
Anyone has any idea?...
✅ Attribut ServiceBusTrigger
Hello I have a fonction with an ServiceBusTrigger attribut. I want to retrieved the value of the topic name base on the environment. So I have a appsettings.Developement.json
For example
"ServiceBus": {
"TopicName": "workitem"...
✅ CleanUp problem
Hi everyone! This is FIz and i have a problem. It's not exactly c#, It's more visual studio problem, but maybe someone can help me. I have several projects in a solution, and the VS cleanup is not working in one project, It works in the rest but not in one. Any clue of what can be happening?
✅ Unity Super Mario level assistance
Hello, I am Ember. I will make this as brief and concise as I can. I am currently working on a task in Unity. The main goat is to implement a P switch into the level through the item box. The instructions of the Pswitch are shown in the attached text file (it's a bit of a read, I'm sorry 😓 ).
As of right now, what I have is the whole level's scene built as well as the prefabs like the breakable blocks, coins and the item box included as shown in the attached image of my work.
The only thing I have left to tackle is the P switch implementation, which has had me completely stumped. I have gotten as far as adding a PSwitch enum to the itemBox code, but that's as far as I've gone. I need urgent help with this, and would absolutely appreciate it if anyone could assist with this...
✅ C# learning after a 1month & 2 weeks pause
I started to learn c# with c# player guide on june 13 I almost finish it and done half of the final project intil something happen in my life that made me stop for 1 month & 2 weeks(a death in the family and have to move towns) and now I want to retake.
My problem is that I am afraid I forgot a lot of what I learn in the book and don't know if I should take the book from the beginning or should go in to the final project but I think that I forgot 60-70% of what I learnt, Any sugestions on what should I do?
I don't want to waste time on take it from 0 but I was not fully confident in what I learnt before the pause
And yes I am beginner in programming c# is my first language...
Trailing Zeros
I'm currently implementing / Simulating a list and have created a Sort method, which implementes bubble sort. For some reason, every time I expand the size of my internal array, I have trailing zeros and have no idea how to get rid of them. I have a feeling that the problem might be the way I compare the values.
Does anyone know how I can get rid of the zeros at the end?...

✅ Equality confusion
My question is about equality on reference types.
Most ms docs state that full equality contract should be implemented only for objects having value semantics, although examples usually talk about things like complex numbers. Records are just glorified classes with multiple properties and have that implemented too. By full equality contract I mean
object.Equals + GetHashCode + IEquatable + operators.
Docs on IEquatable<T> say that if you implement it you should also implement operators.
Docs for object.Equals say that most reference types shouldn't override operators even if they implement equals.
Why would a type implement Equals but not operators and not IEquatable<T>?...✅ passing a string to and from a native DLL with pinvoke?
I have some functions in a native dll that look something like this: (not exactly like this but this is the essential stuff)
const char* get_string();
void free_string(const char *c);
How would I define those in a C# program so I can get a C# string from the native char buffer and then get the native char buffer pointer so it can be freed?...
✅ Console.WriteLine Broken
For some reason my program stopped logging to console, i rolled the code back to the very basics (hello world) and it still won't.
My csproj doesn't contain any thing special either.
It's not about the VS debug window and i double checked in a "normal" power shell outside of VS Code, just in case....

✅ MVC and [JsonPolymorphic] response
I'm trying to return a
JsonPolymorphic object from an MVC endpoint, but the JSON Serializer seems to omit the $type metadata field which is required to serialize the type.
When directly using the JsonSerializer the $type field is present as expected.
There is a long git issue for the runtime regarding this behavior https://github.com/dotnet/runtime/issues/77532 and over at aspnetcore https://github.com/dotnet/aspnetcore/pull/46008 as well....✅ Rider IDE Console Issue/Typing
Comrades, anyone using the Rider IDE here?
I've been having some issues with the console where I would start writing on the line above overwriting existing text instead of writing it on the same line or below, any way of fixing this besides using an external console ?
(Console.WriteLine() / Console.Write() / Console.ReadLine() )
(insert key is not pressed/used)...

✅ Modern Reference API Project/Template
Hi, we are looking to create a public facing API. I found this reference project to help figure out compliance details and security mechanism: https://github.com/erwinkramer/bank-api?tab=readme-ov-file#bank-api Does anyone know if there are other such reference/template projects? I don't see that this one has versioning which is a big deal for us in case of back compatibility.
✅ I need help understanding ASP.NET savechanges()
I am trying to understand my professors expectations on where I am supposed to place this file. Is this code for a controller?
```cs
[HttpPost]...