private static MemberInfo ForValue(BuildingType bt) { Type type = bt.GetType(); // get specific enum type return(type.GetField(Enum.GetName(type, bt))); }