Show / Hide Table of Contents

Class Property

Definition class for properties.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
NamedElementBase<IProperty>
ModelElementBase<IProperty>
Property
Implements
IProperty
IModelElement
INamedElement
IAggregatedElementInfo
IPropertyInfo
IValueElementInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider
Inherited Members
ModelElementBase<IProperty>.Members
ModelElementBase<IProperty>.Annotations
ModelElementBase<IProperty>.GetMember(String, Boolean)
ModelElementBase<IProperty>.AddMember(INamedElement)
NamedElementBase<IProperty>.Logger
NamedElementBase<IProperty>.Name
NamedElementBase<IProperty>.IElementInfo.DeclaringContainer
NamedElementBase<IProperty>.IElementInfo.Annotations
NamedElementBase<IProperty>.IAggregatedElementInfo.Parts
NamedElementBase<IProperty>.QualifiedFullName
NamedElementBase<IProperty>.FullName
NamedElementBase<IProperty>.DeclaringContainer
NamedElementBase<IProperty>.ModelSpace
NamedElementBase<IProperty>.IsInherited
NamedElementBase<IProperty>.ConstructionMonitor
NamedElementBase<IProperty>.Parts
NamedElementBase<IProperty>.ToString()
NamedElementBase<IProperty>.GetAttributes<TAttribute>()
NamedElementBase<IProperty>.AddPart(Object)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.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)
Namespace: Kephas.Model.Elements
Assembly: Kephas.Model.dll
Syntax
public class Property : ModelElementBase<IProperty>, IConstructibleElement, IProperty, IModelElement, INamedElement, IAggregatedElementInfo, IPropertyInfo, IValueElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider

Constructors

| Improve this Doc View Source

Property(IModelConstructionContext, String)

Initializes a new instance of the Property class.

Declaration
public Property(IModelConstructionContext constructionContext, string name)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

System.String name

The name.

Properties

| Improve this Doc View Source

CanRead

Gets or sets a value indicating whether the property value can be read.

Declaration
public virtual bool CanRead { get; protected set; }
Property Value
Type Description
System.Boolean

true if the property value can be read; otherwise false.

| Improve this Doc View Source

CanWrite

Gets or sets a value indicating whether the property can be written to.

Declaration
public virtual bool CanWrite { get; protected set; }
Property Value
Type Description
System.Boolean

true if the property can be written to; otherwise, false.

| Improve this Doc View Source

ValueType

Gets or sets the type of the property.

Declaration
public ITypeInfo ValueType { get; protected set; }
Property Value
Type Description
ITypeInfo

The type of the property.

Methods

| Improve this Doc View Source

ComputeValueType()

Calculates the property type.

Declaration
protected virtual ITypeInfo ComputeValueType()
Returns
Type Description
ITypeInfo

The calculated property type.

Exceptions
Type Condition
ModelException

Thrown when the property has no parts which can be used to get the classifier.

| Improve this Doc View Source

GetValue(Object)

Gets the value from the specified object.

Declaration
public object GetValue(object obj)
Parameters
Type Name Description
System.Object obj

The object.

Returns
Type Description
System.Object

The value.

| Improve this Doc View Source

OnCompleteConstruction(IModelConstructionContext)

Called when the construction is complete.

Declaration
protected override void OnCompleteConstruction(IModelConstructionContext constructionContext)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

Overrides
Kephas.Model.Elements.ModelElementBase<Kephas.Model.IProperty>.OnCompleteConstruction(Kephas.Model.Construction.IModelConstructionContext)
| Improve this Doc View Source

SetValue(Object, Object)

Sets the specified value.

Declaration
public void SetValue(object obj, object value)
Parameters
Type Name Description
System.Object obj

The object.

System.Object value

The value.

| Improve this Doc View Source

TryGetRuntimePropertyInfo()

Tries to get the runtime property information for this property.

Declaration
protected virtual IRuntimePropertyInfo TryGetRuntimePropertyInfo()
Returns
Type Description
IRuntimePropertyInfo

A IRuntimePropertyInfo or null.

Implements

IProperty
IModelElement
INamedElement
IAggregatedElementInfo
IPropertyInfo
IValueElementInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider

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)
ModelElementExtensions.GetDeclaredMembers(IModelElement)
RuntimeTypeInfoExtensions.IsExcludedFromModel(IAttributeProvider)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX