![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
in .Net you can make your Enum inherit from sbyte, byte, short, ushort, int, uint, long, ulong (default is int). What I'm trying to do is determine what is the underlying type of a enum at runtime via reflection. But I cant figure out how. If I get the Type of my custom emun, it's base type property just says System.Enum, who's base type is System.Enum (and on and on...). Is there anyway to figure this out? Thanks, |
#3
| |||
| |||
|
|
in .Net you can make your Enum inherit from sbyte, byte, short, ushort, int, uint, long, ulong (default is int). What I'm trying to do is determine what is the underlying type of a enum at runtime via reflection. But I cant figure out how. If I get the Type of my custom emun, it's base type property just says System.Enum, who's base type is System.Enum (and on and on...). Is there anyway to figure this out? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |