About 10,200,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. 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 …

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

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

  7. c# - What does null! statement mean? - Stack Overflow

    Feb 16, 2019 · However, since C# 8.0 and its new "nullable-reference-types" feature, the operator got a second meaning. It can be used on a type to control Nullability, it is then called the "Null …

  8. c# - How to make '.Contains (string)' case insensitive - Stack …

    A word of warning: The default for string.IndexOf(string) is to use the current culture, while the default for string.Contains(string) is to use the ordinal comparer. As we know, the former can …

  9. What's the @ in front of a string in C#? - Stack Overflow

    C# supports two forms of string literals: regular string literals and verbatim string literals. A regular string literal consists of zero or more characters enclosed in double quotes, as in "hello", and …

  10. c# - Using variables inside strings - Stack Overflow

    6 Up to C#5 (-VS2013) you have to call a function/method for it. Either a "normal" function such as String.Format or an overload of the + operator.