Пример #1
0
 public HAField(string name, HAType type, bool optional, HADefaultValue?defaultValue = null, HADeprecation?deprecation = null)
 {
     Name         = name;
     Type         = type;
     DefaultValue = defaultValue;
     IsOptional   = optional;
     Deprecation  = deprecation;
 }
 public HATypeMap(HAType valueType, bool nullable)
 {
     ValueType  = valueType;
     IsNullable = nullable;
 }
 public HATypeArray(HAType elementType, bool nullable, List <string> tags)
 {
     ElementType = elementType;
     IsNullable  = nullable;
     Tags        = tags;
 }
Пример #4
0
 public HATypeArray(HAType elementType, bool nullable)
 {
     ElementType = elementType;
     IsNullable  = nullable;
 }
 public static HATypeMap Map(HAType valueType, bool nullable)
 => new HATypeMap(valueType: valueType, nullable: nullable);
 public static HATypeArray Array(HAType elementType, bool nullable)
 => new HATypeArray(elementType: elementType, nullable: nullable);
 public static HATypeMap Map(HAType valueType, bool nullable, List <string> tags)
 => new HATypeMap(valueType: valueType, nullable: nullable, tags: tags);
 public static HATypeArray Array(HAType elementType, bool nullable, List <string> tags)
 => new HATypeArray(elementType: elementType, nullable: nullable, tags: tags);
 public HATypeMap(HAType valueType, bool nullable, List <string> tags)
 {
     ValueType  = valueType;
     IsNullable = nullable;
     Tags       = tags;
 }