C# Enum Display Names With Spaces and Special Characters
The name of an enum in c# can't contain any special characters or spaces. For example, the third value in this enum won't work: public enum Soda : int { [...]
The name of an enum in c# can't contain any special characters or spaces. For example, the third value in this enum won't work: public enum Soda : int { [...]
To check if an object is of a certain type in c#, simply use the is statement: if (myPerson is Person) { // Variable is of type Person }