Top ".net" questions

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

How to loop through all enum values in C#?

This question already has an answer here: How do I enumerate an enum in C#? 26 answers public enum Foos { A, …

c# .net enums language-features
.NET String.Format() to add commas in thousands place for a number

I want to add a comma in the thousands place for a number. String.Format()?

c# .net string format
HTML.ActionLink method

Let's say I have a class public class ItemController:Controller { public ActionResult Login(int id) { return View("Hi", id); } } On …

c# .net asp.net-mvc html-helper actionlink
String was not recognized as a valid DateTime " format dd/MM/yyyy"

I am trying to convert my string formatted value to date type with format dd/MM/yyyy. this.Text="22/11/2009"; DateTime …

c# .net datetime types casting
Pass Method as Parameter using C#

I have several methods all with the same parameter types and return values but different names and blocks. I want …

c# .net methods delegates
Encrypt and decrypt a string in C#?

How can I encrypt and decrypt a string in C#?

c# .net encryption mono cryptography
How do I update the GUI from another thread?

Which is the simplest way to update a Label from another Thread? I have a Form running on thread1, and …

c# .net multithreading winforms user-interface
In C#, what is the difference between public, private, protected, and having no access modifier?

All my college years I have been using public, and would like to know the difference between public, private, and …

c# .net asp.net access-modifiers
Best way to reverse a string

I've just had to write a string reverse function in C# 2.0 (i.e. LINQ not available) and came up with …

c# .net performance algorithm unicode
How to delete all files and folders in a directory?

Using C#, how can I delete all files and folders from a directory, but still keep the root directory?

c# .net