TsProperty class
Represents a property of the class in the code model.
Namespace: TypeLite.TsModels
Interfaces: IMemberIdentifier
Properties
Name | Description | |
---|---|---|
ClrProperty | Gets the CLR property represented by this TsProperty. | |
ConstantValue | Gets or sets the constant value of this property. | |
GenericArguments | Gets the GenericArguments for this property. | |
IsIgnored | Gets or sets bool value indicating whether this property will be ignored by TsGenerator. | |
IsOptional | Gets or sets bool value indicating whether this property is optional in TypeScript interface. | |
Name | ||
PropertyType | Gets or sets type of the property. |
TsProperty.ClrProperty property
Gets the CLR property represented by this TsProperty.
Syntax
1 | public MemberInfo ClrProperty { get ; set ; } |
TsProperty.ConstantValue property
Gets or sets the constant value of this property.
Syntax
1 | public object ConstantValue { get ; set ; } |
TsProperty.GenericArguments property
Gets the GenericArguments for this property.
Syntax
1 | public IList<TsType> GenericArguments { get ; set ; } |
TsProperty.IsIgnored property
Gets or sets bool value indicating whether this property will be ignored by TsGenerator.
Syntax
1 | public bool IsIgnored { get ; set ; } |
TsProperty.IsOptional property
Gets or sets bool value indicating whether this property is optional in TypeScript interface.
Syntax
1 | public bool IsOptional { get ; set ; } |
TsProperty.Name property
Syntax
1 | public string Name { get ; set ; } |
TsProperty.PropertyType property
Gets or sets type of the property.
Syntax
1 | public TsType PropertyType { get ; set ; } |