Class ValueTypeConstructor
A value type constructor.
Inheritance
System.Object
    
    
    
    ValueTypeConstructor
  Implements
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
Assembly: Kephas.Model.dll
Syntax
public class ValueTypeConstructor : ClassifierConstructorBase<ValueType, IValueType>, IRuntimeModelElementConstructor<ValueType, IValueType, IRuntimeTypeInfo>, IRuntimeModelElementConstructorConstructors
| Improve this Doc View SourceValueTypeConstructor()
Initializes a new instance of the ValueTypeConstructor class.
Declaration
public ValueTypeConstructor()Properties
| Improve this Doc View SourceForceValueType
Gets a value indicating whether the value type should be forced.
Declaration
public bool ForceValueType { get; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
Methods
| Improve this Doc View SourceCanCreateModelElement(IModelConstructionContext, IRuntimeTypeInfo)
Determines whether a model element can be created for the provided runtime element.
Declaration
protected override bool CanCreateModelElement(IModelConstructionContext constructionContext, IRuntimeTypeInfo runtimeElement)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| IRuntimeTypeInfo | runtimeElement | The runtime element. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
Overrides
Kephas.Model.Runtime.Construction.ClassifierConstructorBase<Kephas.Model.Elements.ValueType, Kephas.Model.IValueType>.CanCreateModelElement(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeTypeInfo)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  TryCreateModelElementCore(IModelConstructionContext, IRuntimeTypeInfo)
Core implementation of trying to get the element information.
Declaration
protected override ValueType TryCreateModelElementCore(IModelConstructionContext constructionContext, IRuntimeTypeInfo runtimeElement)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| IRuntimeTypeInfo | runtimeElement | The runtime element. | 
Returns
| Type | Description | 
|---|---|
| ValueType | A new element information based on the provided runtime element information, or  | 
Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<Kephas.Model.Elements.ValueType, Kephas.Model.IValueType, Kephas.Runtime.IRuntimeTypeInfo>.TryCreateModelElementCore(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeTypeInfo)