string GetBitFieldType() { var bits = BitFieldBits; if (bits >= 0 && !IsEnum) { if (bits == 1) return "Boolean"; return "Byte"; } return null; }