sealed class
|
ClassTypeBuilder
|
implements
|
IBuilder<ClassType>
|
The built class type will be abstract.
public
method
|
Abstract
()
|
||
type
|
ClassTypeBuilder
|
||
returns
|
|
this |
See also:
ClassType.IsAbstractFinishes the build process and returns the resulting object.
[OwnerReturn, OwnerThis]
|
||||
public
method
|
Build
()
|
|||
type
|
ClassType
|
|||
returns
|
The resulting object. | |||
implements
|
IBuilder.Build
|
The built class type will have an object configurator.
public
method
|
Configurator
(IConfiguratorObject configurator)
|
||
type
|
ClassTypeBuilder
|
||
params
|
configurator
|
[not-null]
|
The object configurator. |
returns
|
|
this |
See also:
ConfigValue.ConfigureAdds an optional class field.
public
method
|
FieldOptional
(string name,
IConfiguratorBase type,
ConfigValue defaultValue = null,
string constraint = null)
|
||
type
|
ClassTypeBuilder
|
||
params
|
name
|
[not-empty]
|
The field name. |
type
|
[not-null]
|
The field type. | |
defaultValue
|
The
field
default
value.
If
null ,
the
default
value
of
type
will
be
used
(see
Value)
will
be
used.
Defaults
to
null .
|
||
constraint
|
The
constraint
expression
or
null . |
||
returns
|
|
this |
Adds an optional class field.
public
method
|
FieldOptional
(string name,
ConfigType type,
ConfigValue defaultValue = null,
string constraint = null)
|
||
type
|
ClassTypeBuilder
|
||
params
|
name
|
[not-empty]
|
The field name. |
type
|
[not-null]
|
The field type. | |
defaultValue
|
The
field
default
value.
If
null ,
Null
will
be
used.
Defaults
to
null .
|
||
constraint
|
The
constraint
expression
or
null . |
||
returns
|
|
this |
Adds a required class field.
public
method
|
FieldRequired
(string name,
IConfiguratorBase type,
string constraint = null)
|
||
type
|
ClassTypeBuilder
|
||
params
|
name
|
[not-empty]
|
The field name. |
type
|
[not-null]
|
The field type. | |
constraint
|
The
constraint
expression
or
null . |
||
returns
|
|
this |
Adds a required class field.
public
method
|
FieldRequired
(string name,
ConfigType type,
string constraint = null)
|
||
type
|
ClassTypeBuilder
|
||
params
|
name
|
[not-empty]
|
The field name. |
type
|
[not-null]
|
The field type. | |
constraint
|
The
constraint
expression
or
null . |
||
returns
|
|
this |
Adds an external class field.
public
method
|
FieldVirtual
(string name,
ConfigType type,
FieldDelegate value,
ConfigValue defaultValue = null)
|
||
type
|
ClassTypeBuilder
|
||
params
|
name
|
[not-empty]
|
The field name. |
type
|
[not-null]
|
The field type. | |
value
|
[not-null]
|
The field value delegate. | |
defaultValue
|
Optional
default
value.
Defaults
to
null . |
||
returns
|
|
this |
Specifies the super class for the built class type.
public
method
|
SuperClass
(IConfiguratorBase superClass)
|
||
type
|
ClassTypeBuilder
|
||
params
|
superClass
|
[not-null]
|
The super class configurator. |
returns
|
|
this |
Specifies the super class for the built class type.
public
method
|
SuperClass
(ClassType superClass)
|
||
type
|
ClassTypeBuilder
|
||
params
|
superClass
|
The
super
class
or
null |
|
returns
|
|
this |