Class TypeBuilder<T>
TypeBuilder that includes strongly typed information about its base class.
Implements
ITypeBuilder<T>
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.TypeFactory.dll
Syntax
public class TypeBuilder<T> : ITypeBuilder<T>
Type Parameters
| Name | Description |
|---|---|
| T | Base class of the type to be built. |
Constructors
| Edit this page View SourceTypeBuilder(TypeBuilder)
Initializes a new instance of the TypeBuilder<T> class by specifying the underlying TypeBuilder to associate.
Declaration
public TypeBuilder(TypeBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeBuilder | builder | Underlying TypeBuilder to associate. |
Properties
| Edit this page View SourceBuilder
Underlying TypeBuilder of this instance.
Declaration
public TypeBuilder Builder { get; }
Property Value
| Type | Description |
|---|---|
| TypeBuilder |
Methods
| Edit this page View SourceNew()
Creates a new instance of the specified runtime type.
Declaration
public T New()
Returns
| Type | Description |
|---|---|
| T | The new instance of the specified type. |
Operators
| Edit this page View Sourceimplicit operator TypeBuilder<T>(TypeBuilder)
Implicitly converts a TypeBuilder into a TypeBuilder<T>.
Declaration
public static implicit operator TypeBuilder<T>(TypeBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeBuilder | builder | TypeBuilder to convert. |
Returns
| Type | Description |
|---|---|
| TypeBuilder<T> |
implicit operator TypeBuilder(TypeBuilder<T>)
Implicitly converts a TypeBuilder<T> into a TypeBuilder.
Declaration
public static implicit operator TypeBuilder(TypeBuilder<T> builder)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeBuilder<T> | builder | TypeBuilder to convert. |
Returns
| Type | Description |
|---|---|
| TypeBuilder |