c# c# 20,374

  1. What is the difference between String and string in C#?
  2. How do I iterate over an enum?
  3. Cast int to enum in C#
  4. Case insensitive 'Contains(string)'
  5. What are the correct version numbers for C#?
  6. What is a NullReferenceException, and how do I fix it?
  7. How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
  8. What is the best way to iterate over a Dictionary in C#?
  9. Deep cloning objects
  10. How do I calculate someone's age in C#?
  11. Should 'using' directives be inside or outside the namespace?
  12. Catch multiple exceptions at once?
  13. Create Excel (.XLS and .XLSX) file from C#
  14. Hidden Features of C#?

  15. Is there a reason for C#'s reuse of the variable in a foreach?
  16. How do you give a C# Auto-Property a default value?
  17. How do I generate a random int number in C#?
  18. Proper use of the IDisposable interface
  19. Get int value from enum in C#
  20. Try-catch speeding up my code?
  21. Calculate relative time in C#
  22. What do two question marks together mean in C#?
  23. What is the difference between an abstract function and a virtual function?
  24. When to use struct?
  25. Static readonly vs const
  26. Why is Dictionary preferred over Hashtable?
  27. Type Checking: typeof, GetType, or is?
  28. Why is it important to override GetHashCode when Equals method is overridden?
  29. Virtual member call in a constructor
  30. How do I update the GUI from another thread?
  31. Calling the base constructor in C#
  32. \d is less efficient than
  33. Can you loop through all enum values?
  34. How do you convert a byte array to a hexadecimal string, and vice versa?
  35. What does the [Flags] Enum Attribute mean in C#?
  36. How do I remedy the “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?
  37. Path.Combine for URLs?
  38. What is the difference between const and readonly?
  39. Why not inherit from List<T>?
  40. Ukkonen's suffix tree algorithm in plain English
  41. Create Generic method constraining T to an Enum
  42. Returning IEnumerable<T> vs. IQueryable<T>
  43. LINQ query on a DataTable
  44. How to Sort a List<T> by a property in the object
  45. How to escape braces (curly brackets) in a format string in .NET
  46. String representation of an Enum
  47. How do I use reflection to call a generic method?
  48. JSON serialization of enum as string
  49. Entity Framework 5 Updating a Record
  50. How can I get the application's path in a .NET console application?