There are few other important operators including sizeof, typeof and ? : supported by C#.
| Operator | Description |
|---|---|
sizeof() | Returns the size of a data type. |
typeof() | Returns the type of a class. |
& | Returns the address of an variable. |
* | Pointer to a variable. |
? : | Conditional Expression |
is | Determines whether an object is of a certain type. |
as | Cast without raising an exception if the cast fails. |
sizeof(int), returns 4.typeof(StreamReader);&a; returns actual address of the variable.*a; creates pointer named 'a' to a variable.? Then value X : Otherwise value Yis Car) // checks if Ford is an object of the Car class.as StringReader;