About 12,900,000 results
Open links in new tab
  1. 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; in the background. I write C# to climb to …

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

    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 Specification in section …

  3. What does the '=>' syntax in C# mean? - Stack Overflow

    Nov 14, 2008 · From C# 3 to C# 5, this was only used for lambda expressions. These are basically a shorter form of the anonymous methods introduced in C# 2, but can also be …

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

    Aug 12, 2008 · The sample below is a little long because I am showing you both the custom version and the flags enum. If you remove the flags enum and the associated functions in the …

  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 is the OR operator in an IF statement - Stack Overflow

    } EDIT: The reason that your updated attempt isn't working is because the logical operators must separate valid C# expressions. Expressions have operands and operators and operators have …

  7. 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 …

  8. 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#?

  9. c# - When to use record vs class vs struct - Stack Overflow

    Nov 13, 2020 · C# records don’t implement the IComparable interface In terms of encapsulation, records are much better than structs because you can’t hide the parameterless constructor in …

  10. c# - Resolving instances with ASP.NET Core DI from within ...

    How do I manually resolve a type using the ASP.NET Core MVC built-in dependency injection framework? Setting up the container is easy enough: public void …