Class RuntimeFieldInfo
Implementation of IRuntimeFieldInfo for runtime fields.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Runtime
Assembly: Kephas.Core.dll
Syntax
public class RuntimeFieldInfo : Expando, IRuntimeFieldInfo, IFieldInfo, 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. |
DeclaringContainer
Gets the parent element declaring this element.
Declaration
public IElementInfo DeclaringContainer { get; }
Property Value
Type | Description |
---|---|
IElementInfo | The declaring element. |
FieldInfo
Gets the field information.
Declaration
public FieldInfo FieldInfo { get; }
Property Value
Type | Description |
---|---|
System.Reflection.FieldInfo | The field information. |
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 field is static.
Declaration
public bool IsStatic { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this field 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. |
ValueType
Gets the type of the field.
Declaration
public IRuntimeTypeInfo ValueType { get; }
Property Value
Type | Description |
---|---|
IRuntimeTypeInfo | The type of the field. |
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 field.
Declaration
ITypeInfo IValueElementInfo.ValueType { get; }
Returns
Type | Description |
---|---|
ITypeInfo | The type of the field. |