About 12,700,000 results
Open links in new tab
  1. c# - What's does the dollar sign ($"string") do? - Stack Overflow

    C# string interpolation is a method of concatenating,formatting and manipulating strings. This feature was introduced in C# 6.0. Using string interpolation, we can use objects and …

  2. c# - What does the `%` (percent) operator mean? - Stack Overflow

    Oct 2, 2024 · If x and y are non-integer values x % y is computed as x – n * y, where n is the largest possible integer that is less than or equal to x / y (more details in the C# 4.0 …

  3. What is the difference between i++ and ++i in C#?

    Jul 27, 2010 · C# is not assembler, and out of 99.9% of the times i++ or ++i are used in code, the things going on in the background are just that; . I write C# to climb to abstraction levels above …

  4. What does the [Flags] Enum Attribute mean in C#?

    Aug 12, 2008 · 70 In extension to the accepted answer, in C#7 the enum flags can be written using binary literals: [Flags] public enum MyColors { None = 0b0000, Yellow = 0b0001, Green …

  5. c# - Operator overloading ==, !=, Equals - Stack Overflow

    Aug 23, 2014 · I've already gone through question I understand that, it is necessary to implement ==, != and Equals(). public class BOX { double height, length, breadth; // this is first one '==' ...

  6. c# - What does the => operator mean in a property or method?

    See this post Difference between Property and Field in C# 3.0+ on the difference between a field and a property getter in C#. Update: Note that expression-bodied members were expanded to …

  7. c# - How to mark a method as obsolete or deprecated? - Stack …

    Jul 16, 2020 · How do I mark a method as obsolete or deprecated using C#?

  8. What does the @ symbol before a variable name mean in C#?

    Mar 18, 2016 · I understand that the @ symbol can be used before a string literal to change how the compiler parses the string. But what does it mean when a variable name is prefixed with …

  9. c# - How can I track down the source of a transitive dependency ...

    Jun 5, 2020 · In a project/solution with lots of <PackageReference> dependencies, it can be difficult to find the source of a transitive dependency that's being pulled in. For example, no …

  10. c# - Enum String Name from Value - Stack Overflow

    I have an enum construct like this: public enum EnumDisplayStatus { None = 1, Visible = 2, Hidden = 3, MarkedForDeletion = 4 } In my database, the enumerations are referenced by