Table of Contents

Class TsProperty

Namespace
Alternet.TsTypedefsGenerator.Core.TsModels
Assembly
Alternet.Common.TypeScript.v9.dll

Represents a property of the class in the code model.

public class TsProperty
Inheritance
TsProperty

Constructors

TsProperty(FieldInfo, TypeGenerationAdditionalInfo)

Initializes a new instance of the TsProperty class with the specific CLR field.

TsProperty(PropertyInfo, TypeGenerationAdditionalInfo)

Initializes a new instance of the TsProperty class with the specific CLR property.

Properties

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.

MemberInfo

Gets the CLR property represented by this TsProperty.

Name
PropertyType

Gets or sets type of the property.