Class RuntimePropertyInfo
Implementation of IRuntimePropertyInfo for runtime properties.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Runtime
Assembly: Kephas.Core.dll
Syntax
public class RuntimePropertyInfo : Expando, IRuntimePropertyInfo, IPropertyInfo, IValueElementInfo, IRuntimeElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Properties
| Improve this Doc View SourceAnnotations
Gets the element annotations.
Declaration
public IEnumerable<object> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Object> | The element annotations. |
CanRead
Gets a value indicating whether the property value can be read.
Declaration
public virtual bool CanRead { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
CanWrite
Gets a value indicating whether the property can be written to.
Declaration
public virtual bool CanWrite { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
DeclaringContainer
Gets the parent element declaring this element.
Declaration
public IElementInfo DeclaringContainer { get; }
Property Value
| Type | Description |
|---|---|
| IElementInfo | The declaring element. |
FullName
Gets the full name of the element.
Declaration
public string FullName { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The full name of the element. |
IsStatic
Gets a value indicating whether this property is static.
Declaration
public bool IsStatic { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | True if this property is static, false if not. |
Name
Gets the name of the element.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The name of the element. |
PropertyInfo
Gets the property information.
Declaration
public PropertyInfo PropertyInfo { get; }
Property Value
| Type | Description |
|---|---|
| System.Reflection.PropertyInfo | The property information. |
ValueType
Gets the type of the property.
Declaration
public IRuntimeTypeInfo ValueType { get; }
Property Value
| Type | Description |
|---|---|
| IRuntimeTypeInfo | The type of the property. |
Methods
| Improve this Doc View SourceGetAttributes<TAttribute>()
Gets the attribute of the provided type.
Declaration
public IEnumerable<TAttribute> GetAttributes<TAttribute>()
where TAttribute : Attribute
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<TAttribute> | The attribute of the provided type. |
Type Parameters
| Name | Description |
|---|---|
| TAttribute | Type of the attribute. |
GetThisTypeInfo()
Gets the ITypeInfo of this expando object.
Declaration
protected override ITypeInfo GetThisTypeInfo()
Returns
| Type | Description |
|---|---|
| ITypeInfo | The ITypeInfo of this expando object. |
Overrides
| Improve this Doc View SourceGetUnderlyingElementInfo()
Gets the underlying member information.
Declaration
public ICustomAttributeProvider GetUnderlyingElementInfo()
Returns
| Type | Description |
|---|---|
| System.Reflection.ICustomAttributeProvider | The underlying member information. |
GetValue(Object)
Gets the value from the specified object.
Declaration
public virtual object GetValue(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The object. |
Returns
| Type | Description |
|---|---|
| System.Object | The value. |
Exceptions
| Type | Condition |
|---|---|
| System.MemberAccessException | Property value cannot be get. |
SetValue(Object, Object)
Sets the specified value.
Declaration
public virtual void SetValue(object obj, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The object. |
| System.Object | value | The value. |
Exceptions
| Type | Condition |
|---|---|
| System.MemberAccessException | Property value cannot be set. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the current object. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValueElementInfo.ValueType
Gets the type of the property.
Declaration
ITypeInfo IValueElementInfo.ValueType { get; }
Returns
| Type | Description |
|---|---|
| ITypeInfo | The type of the property. |