Do NOT use for questions about .NET Core - use [.net-core] instead.
What are the correct version numbers for C#? What came out when? Why can't I find any answers about C# 3.5? …
c# .net visual-studio .net-framework-version compiler-versionI want to serialize objects to strings, and back. We use protobuf-net to turn an object into a Stream and …
c# .net serialization deserialization protobuf-netI see that for using objects which are not thread safe we wrap the code with a lock like this: …
c# .net synchronization locking thread-safetyIn C# 3.0 you can create anonymous class with the following syntax var o = new { Id = 1, Name = "Foo" }; Is there a …
c# .net generics anonymous-typesI'm studying C# by following the guides in MSDN. Now, I just tried the Example 1 (here is the link to …
c# .net console-application msdnI'm hoping someone can enlighten me as to what could possibly be causing this error: Attempted to read or write …
c# .net multithreading memory-managementI have a string User name (sales) and I want to extract the text between the brackets, how would I …
c# .net regexA common task when calling web resources from a code is building a query string to including all the necessary …
c# .net url query-stringI know from reading the Microsoft documentation that the "primary" use of the IDisposable interface is to clean up unmanaged …
c# .net garbage-collection idisposable