Mono.CSharp.TypeManager.IsEnumType C# (CSharp) Method

IsEnumType() public static method

public static IsEnumType ( System.TypeSpec t ) : bool
t System.TypeSpec
return bool
	public static bool IsEnumType (TypeSpec t)
	{
		return t.IsEnum;
	}

Usage Example

Example #1
0
 static bool IsValidEnumType(TypeSpec t)
 {
     return(t == TypeManager.int32_type || t == TypeManager.uint32_type || t == TypeManager.int64_type ||
            t == TypeManager.byte_type || t == TypeManager.sbyte_type || t == TypeManager.short_type ||
            t == TypeManager.ushort_type || t == TypeManager.uint64_type || t == TypeManager.char_type ||
            TypeManager.IsEnumType(t));
 }
All Usage Examples Of Mono.CSharp.TypeManager::IsEnumType