Table of Contents

Class TypeBuilder<TBuilder, TType>

Namespace
LinqToDB.CodeModel
Assembly
linq2db.Tools.dll

Base class for type builders.

public abstract class TypeBuilder<TBuilder, TType> where TBuilder : TypeBuilder<TBuilder, TType> where TType : TypeBase

Type Parameters

TBuilder

Builder implementation type.

TType

Built type.

Inheritance
TypeBuilder<TBuilder, TType>
Derived
Extension Methods

Constructors

TypeBuilder(TType, ClassGroup)

protected TypeBuilder(TType type, ClassGroup group)

Parameters

type TType
group ClassGroup

Properties

Group

Class group, to which current class belongs.

public ClassGroup Group { get; }

Property Value

ClassGroup

Type

Built type type descriptor.

public TType Type { get; }

Property Value

TType

Methods

AddAttribute(CodeAttribute)

Add custom attribute to type.

public TBuilder AddAttribute(CodeAttribute attribute)

Parameters

attribute CodeAttribute

Custom attribute.

Returns

TBuilder

Type builder.

AddAttribute(IType)

Add custom attribute to type.

public AttributeBuilder AddAttribute(IType type)

Parameters

type IType

Attribute type.

Returns

AttributeBuilder

Custom attribute builder.

SetModifiers(Modifiers)

Set modifiers to type. Replaces old value.

public TBuilder SetModifiers(Modifiers modifiers)

Parameters

modifiers Modifiers

Returns

TBuilder

Type builder.

XmlComment()

Add xml-doc to type.

public XmlDocBuilder XmlComment()

Returns

XmlDocBuilder

Xml-doc builder.