Table of Contents

Method Add

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

Add<T>(TypeGenerationAdditionalInfo)

Adds type with all referenced classes to the model.

public TsModuleMember Add<T>(TypeGenerationAdditionalInfo additionalInfo)

Parameters

additionalInfo TypeGenerationAdditionalInfo

Returns

TsModuleMember

type added to the model

Type Parameters

T

The type to add to the model.

Add<T>(bool, TypeGenerationAdditionalInfo)

Adds type and optionally referenced classes to the model.

public TsModuleMember Add<T>(bool includeReferences, TypeGenerationAdditionalInfo additionalInfo)

Parameters

includeReferences bool

bool value indicating whether classes referenced by T should be added to the model.

additionalInfo TypeGenerationAdditionalInfo

Returns

TsModuleMember

type added to the model

Type Parameters

T

The type to add to the model.

Add(Type, TypeGenerationAdditionalInfo)

Adds type with all referenced classes to the model.

public TsModuleMember Add(Type clrType, TypeGenerationAdditionalInfo additionalInfo)

Parameters

clrType Type

The type to add to the model.

additionalInfo TypeGenerationAdditionalInfo

Returns

TsModuleMember

type added to the model

Add(Type, bool, TypeGenerationAdditionalInfo, Dictionary<Type, TypeConvertor>)

Adds type and optionally referenced classes to the model.

public TsModuleMember Add(Type clrType, bool includeReferences, TypeGenerationAdditionalInfo additionalInfo, Dictionary<Type, TypeConvertor> typeConvertors = null)

Parameters

clrType Type

The type to add to the model.

includeReferences bool

bool value indicating whether classes referenced by T should be added to the model.

additionalInfo TypeGenerationAdditionalInfo
typeConvertors Dictionary<Type, TypeConvertor>

Returns

TsModuleMember

type added to the model

Add(Assembly, TypeGenerationAdditionalInfo)

Adds all classes annotated with the TsClassAttribute from an assembly to the model.

public void Add(Assembly assembly, TypeGenerationAdditionalInfo additionalInfo)

Parameters

assembly Assembly

The assembly with classes to add

additionalInfo TypeGenerationAdditionalInfo