Show / Hide Table of Contents

Class ValueTypeConstructor

A value type constructor.

Inheritance
System.Object
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>
ModelElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>
ClassifierConstructorBase<ValueType, IValueType>
ValueTypeConstructor
Implements
IRuntimeModelElementConstructor<ValueType, IValueType, IRuntimeTypeInfo>
IRuntimeModelElementConstructor
Inherited Members
ClassifierConstructorBase<ValueType, IValueType>.CanCreateModelElement(IModelConstructionContext, IRuntimeTypeInfo)
ClassifierConstructorBase<ValueType, IValueType>.TryComputeNameCore(Object)
ModelElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.ConstructModelElementContent(IModelConstructionContext, IRuntimeTypeInfo, ValueType)
ModelElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.ComputeMembers(IModelConstructionContext, IRuntimeTypeInfo)
ModelElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.ComputeMemberAnnotations(IModelConstructionContext, IRuntimeTypeInfo)
ModelElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.ComputeMemberProperties(IModelConstructionContext, IRuntimeTypeInfo)
ModelElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.ComputeMemberMethods(IModelConstructionContext, IRuntimeTypeInfo)
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.ElementNameDiscriminator
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.TryCreateModelElement(IModelConstructionContext, Object)
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.TryComputeName(IModelConstructionContext, Object)
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.CanCreateModelElement(IModelConstructionContext, IRuntimeTypeInfo)
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.TryCreateModelElementCore(IModelConstructionContext, IRuntimeTypeInfo)
NamedElementConstructorBase<ValueType, IValueType, IRuntimeTypeInfo>.TryComputeNameCore(Object)
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>, IRuntimeModelElementConstructor

Constructors

| Improve this Doc View Source

ValueTypeConstructor()

Initializes a new instance of the ValueTypeConstructor class.

Declaration
public ValueTypeConstructor()

Properties

| Improve this Doc View Source

ForceValueType

Gets a value indicating whether the value type should be forced.

Declaration
public bool ForceValueType { get; }
Property Value
Type Description
System.Boolean

true if a value type should be forced, false if not.

Methods

| Improve this Doc View Source

CanCreateModelElement(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

truetrue if a model element can be created, false if not.

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 null if the runtime element information is not supported.

Overrides
Kephas.Model.Runtime.Construction.NamedElementConstructorBase<Kephas.Model.Elements.ValueType, Kephas.Model.IValueType, Kephas.Runtime.IRuntimeTypeInfo>.TryCreateModelElementCore(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeTypeInfo)

Implements

IRuntimeModelElementConstructor<TModel, TModelContract, TRuntime>
IRuntimeModelElementConstructor

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX