Class ValueTypeBuilder
Builder for runtime value type information.
Inheritance
System.Object
ValueTypeBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Model.Runtime.Construction.Builders
Assembly: Kephas.Model.dll
Syntax
public class ValueTypeBuilder : ClassifierBuilderBase<ValueType, IValueType, ValueTypeBuilder>
Constructors
| Improve this Doc View SourceValueTypeBuilder(IModelConstructionContext, IRuntimeTypeInfo)
Initializes a new instance of the ValueTypeBuilder class.
Declaration
public ValueTypeBuilder(IModelConstructionContext constructionContext, IRuntimeTypeInfo runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
IRuntimeTypeInfo | runtimeElement | The runtime element. |
ValueTypeBuilder(IModelConstructionContext, Type)
Initializes a new instance of the ValueTypeBuilder class.
Declaration
public ValueTypeBuilder(IModelConstructionContext constructionContext, Type runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
System.Type | runtimeElement | The runtime element. |
Methods
| Improve this Doc View SourceAsComplex()
Marks the value type as being complex.
Declaration
public ValueTypeBuilder AsComplex()
Returns
Type | Description |
---|---|
ValueTypeBuilder | This builder. |
AsPrimitive()
Marks the value type as being primitive.
Declaration
public ValueTypeBuilder AsPrimitive()
Returns
Type | Description |
---|---|
ValueTypeBuilder | This builder. |
CreateElementConstructor(IModelConstructionContext, IRuntimeTypeInfo)
Creates the element information out of the provided runtime element.
Declaration
protected override IRuntimeModelElementConstructor CreateElementConstructor(IModelConstructionContext constructionContext, IRuntimeTypeInfo runtimeElement)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
IRuntimeTypeInfo | runtimeElement | The runtime element. |
Returns
Type | Description |
---|---|
IRuntimeModelElementConstructor | A new instance of |
Overrides
Kephas.Model.Runtime.Construction.Builders.NamedElementBuilderBase<Kephas.Model.Elements.ValueType, Kephas.Model.IValueType, Kephas.Runtime.IRuntimeTypeInfo, Kephas.Model.Runtime.Construction.Builders.ValueTypeBuilder>.CreateElementConstructor(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeTypeInfo)