Use a numeric suffix to explicitly declare a numeric literal to be of a specific numeric type (U for unsigned int, L for long, UL for unsigned long, M for decimal, F for float, and D for double).
Use verbatim string (prefixed with the @ character) if you don’t want the characters in your string translated (e.g. if you have escape sequences, etc.), except for the double quote escape sequence, as in below:
Use null coalescing (??) if the variable you are working on can be null and you don’t want null.
Use | or & if you are not short-circuiting, otherwise use || or &&.
There are actually 4 types of main entry point in a C# program. They are:
There is no cascading of case in switch which is why each case including the default need to have the break. But you can cascade cases that have no statements, as in below. Useful when you need to handle multiple cases in the same way.