Posts Tagged ‘Conversion’

Casting Enums by using Extension Methods in C#.

Wednesday, June 23, 2010 8:39 No Comments

In C# there is no way to implicity cast one enum to another. One possible way around this is by assigning values to each enum member. If the values of the first enum match the values of the second enum, you use two casts; the first casting the first enum value to an integer, and [...]

This was posted under category: Uncategorized Tags: , , ,