enum is a tremendously useful structure in C#, but when defining a new enum there is one thing you should always ask yourself:
What should the default value be for my enum?
As you might know already, an object is immutable if its state doesn’t change once it has been created.
In C# the most used immutable type is string, this means every time you modify the value of a string variable…
Runtime type conversion is something we all have to do from time to time, and in C#, type conversion is usually done using either the as keyword or casting.
Here’s a quick glance of how the two approaches differ:
In C#, there are two ways for you to declare a constant variable, you can either declare the variable as readonly, or const:
readonly
If you’re reading this then you should already know what an enum is in C# and that the underlying type of an enum element is int and you can convert between int and enum using casting:
AMFVO is short for Action Message Format (AMF) Value Object (VO).
AMF is a binary format used to serialize ActionScript objects, primarily used to exchange data between a Flash application and a remote service; a VO is also known as a Data Transfer Object…