TsModelBuilder class

Creates a script model from CLR classes.

Namespace: TypeLite

Methods

Name Description
Add Adds type and optionally referenced classes to the model.
Add Adds all classes annotated with the TsClassAttribute from an assembly to the model.
Add Adds type with all referenced classes to the model.
Add<T> Adds type and optionally referenced classes to the model.
Add<T> Adds type with all referenced classes to the model.
Build Build the model.

TsModelBuilder.Add method

Adds type and optionally referenced classes to the model.

Syntax

Parameters

Type clrType
The type to add to the model.
bool includeReferences
bool value indicating whether classes referenced by T should be added to the model.

Returns

TsModuleMember
type added to the model

TsModelBuilder.Add method

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

Syntax

Parameters

Assembly assembly
The assembly with classes to add

TsModelBuilder.Add method

Adds type with all referenced classes to the model.

Syntax

Parameters

Type clrType
The type to add to the model.

Returns

TsModuleMember
type added to the model

TsModelBuilder.Add<T> method

Adds type and optionally referenced classes to the model.

Syntax

Parameters

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

Returns

TsModuleMember
type added to the model

TsModelBuilder.Add<T> method

Adds type with all referenced classes to the model.

Syntax

Returns

TsModuleMember
type added to the model

TsModelBuilder.Build method

Build the model.

Syntax

Returns

TsModel
The script model with the classes.