C# – TypeOf, GetType, Is
In C#, there are different ways to detemine the type of an object or type itself. These include typeof, GetType and Is. We would use typeof if we are trying to determine the type of a class, interface, array, enum etc. Typeof does not accept variables as a parameter. This is specified at compile time. If we are trying to determine the type of a variable, we would use GetType. … Continue reading C# – TypeOf, GetType, Is