Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

Reading CSV file and storing values into an array

I am trying to read a *.csv-file. The *.csv-file consist of two columns separated by semicolon (";"). I am able to …

c# .net arrays csv
How and when to use ‘async’ and ‘await’

From my understanding one of the main things that async and await do is to make code easy to write …

c# .net asynchronous async-await
Metadata file '.dll' could not be found

I am working on a WPF, C# 3.0 project, and I get this error: Error 1 Metadata file 'WORK=- \Tools\VersionManagementSystem\…

c# .net wpf visual-studio-2008 c#-3.0
Deep cloning objects

I want to do something like: MyObject myObj = GetMyObj(); // Create and fill a new object MyObject newObj = myObj.Clone(); And …

c# .net clone
How to enumerate an enum

How can you enumerate an enum in C#? E.g. the following code does not compile: public enum Suit { Spades, …

c# .net loops enums enumeration
How do I save a stream to a file in C#?

I have a StreamReader object that I initialized with a stream, now I want to save this stream to disk (…

c# .net stream
Could not load file or assembly or one of its dependencies

I'm having another of these "Could not load file or assembly or one of its dependencies" problems. Additional information: Could …

c# .net reference compiler-errors
Deserialize JSON into C# dynamic object?

Is there a way to deserialize JSON content into a C# 4 dynamic type? It would be nice to skip creating …

c# .net json serialization dynamic
How can I generate random alphanumeric strings?

How can I generate a random 8 character alphanumeric string in C#?

c# .net random
Could not establish trust relationship for SSL/TLS secure channel -- SOAP

I have a simple web service call, generated by a .NET (C#) 2.0 windows app, via the web service proxy generated …

c# .net ssl trust