About 2,840,000 results
Open links in new tab
  1. 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 …

  2. c# - ?: ?? Operators Instead Of IF|ELSE - Stack Overflow

    Operator (C# Reference) The ?? operator is called the null-coalescing operator and is used to define a default value for a nullable value types as well as reference types.

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

    Aug 23, 2014 · c# .net compiler-errors operator-overloading edited May 23, 2017 at 11:47 Community Bot 1 1

  4. What is the difference between & and && operators in C#

    May 4, 2020 · I am trying to understand the difference between & and &&operators in C#. I searched on the internet without success. Can somebody please explain with an example?

  5. How do I overload the [] operator in C# - Stack Overflow

    The [] operator is called an indexer. You can provide indexers that take an integer, a string, or any other type you want to use as a key. The syntax is straightforward, following the same …

  6. c# - What is the difference between the | and || or operators?

    Aug 29, 2008 · FWIW, Technically, in C# | is a logical or when applied to booleans. As your linked reference states. In practice, the end result is the same as if it were a bitwise operator, …

  7. c# - Understand the shift operator - Stack Overflow

    Jan 20, 2009 · The predefined shift operators are listed below. Shift left: int operator << (int x, int count); uint operator << (uint x, int count); long operator << (long x, int count); ulong operator …

  8. C# 'or' operator? - Stack Overflow

    Jan 18, 2014 · C# supports two boolean or operators: the single bar | and the double-bar ||. The difference is that | always checks both the left and right conditions, while || only checks the …

  9. c# - What do the +=, -=, *=, and /= operators mean? - Stack …

    Dec 11, 2024 · See 7.13 Assignment operators in the spec and its subsections., specifically 7.13.2 Compound assignment: An operation of the form x op = y is processed by applying …

  10. c# - What is the OR operator in an IF statement - Stack Overflow

    In C#9 we can now use the pattern combinators "or", "and" and "not" as an operator in an "is" condition check. See this for more information. So your code ...