Show / Hide Table of Contents

Class MethodConstructor

A method constructor.

Inheritance
System.Object
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>
ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>
MethodConstructor
Implements
IRuntimeModelElementConstructor<Method, IMethod, IRuntimeMethodInfo>
IRuntimeModelElementConstructor
Inherited Members
ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.ConstructModelElementContent(IModelConstructionContext, IRuntimeMethodInfo, Method)
ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.ComputeMembers(IModelConstructionContext, IRuntimeMethodInfo)
ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.ComputeMemberAnnotations(IModelConstructionContext, IRuntimeMethodInfo)
ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.ComputeMemberProperties(IModelConstructionContext, IRuntimeMethodInfo)
ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.ComputeMemberMethods(IModelConstructionContext, IRuntimeMethodInfo)
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.ElementNameDiscriminator
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.TryCreateModelElement(IModelConstructionContext, Object)
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.TryComputeName(IModelConstructionContext, Object)
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.CanCreateModelElement(IModelConstructionContext, IRuntimeMethodInfo)
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.TryCreateModelElementCore(IModelConstructionContext, IRuntimeMethodInfo)
NamedElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>.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
[ProcessingPriority(Priority.Low)]
public class MethodConstructor : ModelElementConstructorBase<Method, IMethod, IRuntimeMethodInfo>, IRuntimeModelElementConstructor<Method, IMethod, IRuntimeMethodInfo>, IRuntimeModelElementConstructor

Methods

| Improve this Doc View Source

ComputeMemberParameters(IModelConstructionContext, IRuntimeMethodInfo)

Computes the member parameters from the runtime element.

Declaration
protected virtual IEnumerable<INamedElement> ComputeMemberParameters(IModelConstructionContext constructionContext, IRuntimeMethodInfo runtimeElement)
Parameters
Type Name Description
IModelConstructionContext constructionContext

The model construction context.

IRuntimeMethodInfo runtimeElement

The runtime member information.

Returns
Type Description
System.Collections.Generic.IEnumerable<INamedElement>

An enumeration of INamedElement.

| Improve this Doc View Source

ComputeMembers(IModelConstructionContext, IRuntimeMethodInfo)

Computes the members from the runtime element.

Declaration
protected override IEnumerable<INamedElement> ComputeMembers(IModelConstructionContext constructionContext, IRuntimeMethodInfo runtimeElement)
Parameters
Type Name Description
IModelConstructionContext constructionContext

The model construction context.

IRuntimeMethodInfo runtimeElement

The runtime member information.

Returns
Type Description
System.Collections.Generic.IEnumerable<INamedElement>

An enumeration of INamedElement.

Overrides
Kephas.Model.Runtime.Construction.ModelElementConstructorBase<Kephas.Model.Elements.Method, Kephas.Model.IMethod, Kephas.Runtime.IRuntimeMethodInfo>.ComputeMembers(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeMethodInfo)
| Improve this Doc View Source

TryCreateModelElementCore(IModelConstructionContext, IRuntimeMethodInfo)

Core implementation of trying to get the element information.

Declaration
protected override Method TryCreateModelElementCore(IModelConstructionContext constructionContext, IRuntimeMethodInfo runtimeElement)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

IRuntimeMethodInfo runtimeElement

The runtime element.

Returns
Type Description
Method

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.Method, Kephas.Model.IMethod, Kephas.Runtime.IRuntimeMethodInfo>.TryCreateModelElementCore(Kephas.Model.Construction.IModelConstructionContext, Kephas.Runtime.IRuntimeMethodInfo)

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