public ArtificialType(string @namespace, string name, Type basetype) { _Name = name; _Namespace = @namespace; _BaseType = basetype; _Field_null = new ArtificialFieldInfo("Field_null", this, typeof(object), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: null); _Field_single = new ArtificialFieldInfo("Field_single", this, typeof(float), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 2.1f); _Field_double = new ArtificialFieldInfo("Field_double", this, typeof(double), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 1.2d); _Field_bool = new ArtificialFieldInfo("Field_bool", this, typeof(bool), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: true); _Field_char = new ArtificialFieldInfo("Field_char", this, typeof(char), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 'A'); _Field_string = new ArtificialFieldInfo("Field_string", this, typeof(string), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: "Hello"); _Field_sbyte = new ArtificialFieldInfo("Field_sbyte", this, typeof(sbyte), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: SByte.MaxValue); _Field_byte = new ArtificialFieldInfo("Field_byte", this, typeof(byte), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Byte.MaxValue); _Field_int16 = new ArtificialFieldInfo("Field_int16", this, typeof(short), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Int16.MaxValue); _Field_uint16 = new ArtificialFieldInfo("Field_uint16", this, typeof(ushort), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: UInt16.MaxValue); _Field_int = new ArtificialFieldInfo("Field_int", this, typeof(int), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Int32.MaxValue); _Field_uint32 = new ArtificialFieldInfo("Field_uint32", this, typeof(uint), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: UInt32.MaxValue); _Field_int64 = new ArtificialFieldInfo("Field_int64", this, typeof(Int64), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Int64.MaxValue); _Field_uint64 = new ArtificialFieldInfo("Field_uint64", this, typeof(UInt64), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: UInt64.MaxValue); _Field_decimal = new ArtificialFieldInfo("Field_decimal", this, typeof(decimal), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 10M); _Field_enum = new ArtificialFieldInfo("Field_enum", this, typeof(System.DayOfWeek), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: System.DayOfWeek.Friday); _Field_TypeThatHasToStringThatThrows = new ArtificialFieldInfo("Field_TypeThatHasToStringThatThrows", this, typeof(TypeThatHasToStringThatThrows), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: new TypeThatHasToStringThatThrows()); _InstField_null = new ArtificialFieldInfo("Instance_Field_null", this, typeof(object), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: null); _InstField_single = new ArtificialFieldInfo("Instance_Field_single", this, typeof(float), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 2.1f); _InstField_double = new ArtificialFieldInfo("Instance_Field_double", this, typeof(double), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 1.2d); _InstField_bool = new ArtificialFieldInfo("Instance_Field_bool", this, typeof(bool), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: true); _InstField_char = new ArtificialFieldInfo("Instance_Field_char", this, typeof(char), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 'A'); _InstField_string = new ArtificialFieldInfo("Instance_Field_string", this, typeof(string), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: "Hello"); _InstField_sbyte = new ArtificialFieldInfo("Instance_Field_sbyte", this, typeof(sbyte), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: SByte.MaxValue); _InstField_byte = new ArtificialFieldInfo("Instance_Field_byte", this, typeof(byte), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Byte.MaxValue); _InstField_int16 = new ArtificialFieldInfo("Instance_Field_int16", this, typeof(short), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Int16.MaxValue); _InstField_uint16 = new ArtificialFieldInfo("Instance_Field_uint16", this, typeof(ushort), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: UInt16.MaxValue); _InstField_int = new ArtificialFieldInfo("Instance_Field_int", this, typeof(int), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Int32.MaxValue); _InstField_uint32 = new ArtificialFieldInfo("Instance_Field_uint32", this, typeof(uint), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: UInt32.MaxValue); _InstField_int64 = new ArtificialFieldInfo("Instance_Field_int64", this, typeof(Int64), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Int64.MaxValue); _InstField_uint64 = new ArtificialFieldInfo("Instance_Field_uint64", this, typeof(UInt64), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: UInt64.MaxValue); _InstField_decimal = new ArtificialFieldInfo("Instance_Field_decimal", this, typeof(decimal), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 10M); _InstField_enum = new ArtificialFieldInfo("Instance_Field_enum", this, typeof(System.DayOfWeek), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: System.DayOfWeek.Friday); _InstField_TypeThatHasToStringThatThrows = new ArtificialFieldInfo("Instance_Field_TypeThatHasToStringThatThrows", this, typeof(TypeThatHasToStringThatThrows), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: new TypeThatHasToStringThatThrows()); _Ctor1 = new ArtificialConstructorInfo(this, new ParameterInfo[] { }); }
public ArtificialType(string @namespace, string name, Type basetype) { _Name = name; _Namespace = @namespace; _BaseType = basetype; _Field_null = new ArtificialFieldInfo("Field_null", this, typeof(object), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: null); _Field_single = new ArtificialFieldInfo("Field_single", this, typeof(float), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 2.1f); _Field_double = new ArtificialFieldInfo("Field_double", this, typeof(double), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 1.2d); _Field_bool = new ArtificialFieldInfo("Field_bool", this, typeof(bool), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: true); _Field_char = new ArtificialFieldInfo("Field_char", this, typeof(char), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 'A'); _Field_string = new ArtificialFieldInfo("Field_string", this, typeof(string), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: "Hello"); _Field_sbyte = new ArtificialFieldInfo("Field_sbyte", this, typeof(sbyte), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: SByte.MaxValue); _Field_byte = new ArtificialFieldInfo("Field_byte", this, typeof(byte), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Byte.MaxValue); _Field_int16 = new ArtificialFieldInfo("Field_int16", this, typeof(short), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Int16.MaxValue); _Field_uint16 = new ArtificialFieldInfo("Field_uint16", this, typeof(ushort), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: UInt16.MaxValue); _Field_int = new ArtificialFieldInfo("Field_int", this, typeof(int), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Int32.MaxValue); _Field_uint32 = new ArtificialFieldInfo("Field_uint32", this, typeof(uint), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: UInt32.MaxValue); _Field_int64 = new ArtificialFieldInfo("Field_int64", this, typeof(Int64), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: Int64.MaxValue); _Field_uint64 = new ArtificialFieldInfo("Field_uint64", this, typeof(UInt64), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: UInt64.MaxValue ); _Field_decimal =new ArtificialFieldInfo("Field_decimal", this, typeof(decimal), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: 10M); _Field_enum = new ArtificialFieldInfo("Field_enum", this, typeof(System.DayOfWeek), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: System.DayOfWeek.Friday); _Field_TypeThatHasToStringThatThrows = new ArtificialFieldInfo("Field_TypeThatHasToStringThatThrows", this, typeof(TypeThatHasToStringThatThrows), IsLiteral: true, IsStatic: true, IsInitOnly: true, RawConstantValue: new TypeThatHasToStringThatThrows()); _InstField_null = new ArtificialFieldInfo("Instance_Field_null", this, typeof(object), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: null); _InstField_single = new ArtificialFieldInfo("Instance_Field_single", this, typeof(float), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 2.1f); _InstField_double = new ArtificialFieldInfo("Instance_Field_double", this, typeof(double), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 1.2d); _InstField_bool = new ArtificialFieldInfo("Instance_Field_bool", this, typeof(bool), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: true); _InstField_char = new ArtificialFieldInfo("Instance_Field_char", this, typeof(char), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 'A'); _InstField_string = new ArtificialFieldInfo("Instance_Field_string", this, typeof(string), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: "Hello"); _InstField_sbyte = new ArtificialFieldInfo("Instance_Field_sbyte", this, typeof(sbyte), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: SByte.MaxValue); _InstField_byte = new ArtificialFieldInfo("Instance_Field_byte", this, typeof(byte), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Byte.MaxValue); _InstField_int16 = new ArtificialFieldInfo("Instance_Field_int16", this, typeof(short), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Int16.MaxValue); _InstField_uint16 = new ArtificialFieldInfo("Instance_Field_uint16", this, typeof(ushort), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: UInt16.MaxValue); _InstField_int = new ArtificialFieldInfo("Instance_Field_int", this, typeof(int), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Int32.MaxValue); _InstField_uint32 = new ArtificialFieldInfo("Instance_Field_uint32", this, typeof(uint), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: UInt32.MaxValue); _InstField_int64 = new ArtificialFieldInfo("Instance_Field_int64", this, typeof(Int64), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: Int64.MaxValue); _InstField_uint64 = new ArtificialFieldInfo("Instance_Field_uint64", this, typeof(UInt64), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: UInt64.MaxValue); _InstField_decimal = new ArtificialFieldInfo("Instance_Field_decimal", this, typeof(decimal), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: 10M); _InstField_enum = new ArtificialFieldInfo("Instance_Field_enum", this, typeof(System.DayOfWeek), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: System.DayOfWeek.Friday); _InstField_TypeThatHasToStringThatThrows = new ArtificialFieldInfo("Instance_Field_TypeThatHasToStringThatThrows", this, typeof(TypeThatHasToStringThatThrows), IsLiteral: true, IsStatic: false, IsInitOnly: true, RawConstantValue: new TypeThatHasToStringThatThrows()); _Ctor1 = new ArtificialConstructorInfo(this, new ParameterInfo[] { }); }