Show / Hide Table of Contents

Interface IRuntimeTypeInfo

Contract for a dynamic TypeInfo.

Inherited Members
ITypeInfo.Namespace
ITypeInfo.QualifiedFullName
ITypeInfo.BaseTypes
ITypeInfo.GenericTypeParameters
ITypeInfo.GenericTypeArguments
ITypeInfo.GenericTypeDefinition
ITypeInfo.GetMember(String, Boolean)
ITypeInfo.CreateInstance(IEnumerable<Object>)
ITypeInfo.MakeGenericType(IEnumerable<ITypeInfo>, IContext)
IRuntimeElementInfo.GetUnderlyingElementInfo()
IElementInfo.Name
IElementInfo.FullName
IElementInfo.Annotations
IElementInfo.DeclaringContainer
IExpando.HasDynamicMember(String)
IExpando.ToDictionary(Func<String, String>, Func<Object, Object>)
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
IIndexable.Item[String]
IAttributeProvider.GetAttributes<TAttribute>()
Namespace: Kephas.Runtime
Assembly: Kephas.Core.dll
Syntax
public interface IRuntimeTypeInfo : ITypeInfo, IRuntimeElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider

Properties

| Improve this Doc View Source

DefaultValue

Gets the default value of the type.

Declaration
object DefaultValue { get; }
Property Value
Type Description
System.Object

The default value.

| Improve this Doc View Source

Fields

Gets the fields.

Declaration
IDictionary<string, IRuntimeFieldInfo> Fields { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, IRuntimeFieldInfo>

The fields.

| Improve this Doc View Source

Kind

Gets the runtime type kind.

Declaration
RuntimeTypeKind Kind { get; }
Property Value
Type Description
RuntimeTypeKind

The runtime type kind.

| Improve this Doc View Source

Members

Gets the members.

Declaration
IDictionary<string, IRuntimeElementInfo> Members { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, IRuntimeElementInfo>

The members.

| Improve this Doc View Source

Methods

Gets the methods.

Declaration
IDictionary<string, ICollection<IRuntimeMethodInfo>> Methods { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.ICollection<IRuntimeMethodInfo>>

The methods.

| Improve this Doc View Source

Properties

Gets the properties.

Declaration
IDictionary<string, IRuntimePropertyInfo> Properties { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, IRuntimePropertyInfo>

The properties.

| Improve this Doc View Source

Type

Gets the underlying Type.

Declaration
Type Type { get; }
Property Value
Type Description
System.Type

The type.

| Improve this Doc View Source

TypeInfo

Gets the underlying TypeInfo.

Declaration
TypeInfo TypeInfo { get; }
Property Value
Type Description
System.Reflection.TypeInfo

The type.

Methods

| Improve this Doc View Source

GetValue(Object, String)

Gets the value of the property with the specified name.

Declaration
object GetValue(object instance, string propertyName)
Parameters
Type Name Description
System.Object instance

The instance.

System.String propertyName

Name of the property.

Returns
Type Description
System.Object

The value of the specified property.

Remarks

If a property with the provided name is not found, an exception occurs.

| Improve this Doc View Source

Invoke(Object, String, IEnumerable<Object>)

Invokes the specified method on the provided instance.

Declaration
object Invoke(object instance, string methodName, IEnumerable<object> args)
Parameters
Type Name Description
System.Object instance

The instance.

System.String methodName

Name of the method.

System.Collections.Generic.IEnumerable<System.Object> args

The arguments.

Returns
Type Description
System.Object

The invocation result.

| Improve this Doc View Source

SetValue(Object, String, Object)

Sets the value of the property with the specified name.

Declaration
void SetValue(object instance, string propertyName, object value)
Parameters
Type Name Description
System.Object instance

The instance.

System.String propertyName

Name of the property.

System.Object value

The value.

Remarks

If a property with the provided name is not found, an exception occurs.

| Improve this Doc View Source

TryGetValue(Object, String, out Object)

Gets the value of the property with the specified name.

Declaration
bool TryGetValue(object instance, string propertyName, out object value)
Parameters
Type Name Description
System.Object instance

The instance.

System.String propertyName

Name of the property.

System.Object value

The property value.

Returns
Type Description
System.Boolean

A boolean value indicating whether the property is found.

| Improve this Doc View Source

TryInvoke(Object, String, IEnumerable<Object>, out Object)

Tries to invokes the specified method on the provided instance.

Declaration
bool TryInvoke(object instance, string methodName, IEnumerable<object> args, out object result)
Parameters
Type Name Description
System.Object instance

The instance.

System.String methodName

Name of the method.

System.Collections.Generic.IEnumerable<System.Object> args

The arguments.

System.Object result

The invocation result.

Returns
Type Description
System.Boolean

A boolean value indicating whether the invocation was successful or not.

| Improve this Doc View Source

TrySetValue(Object, String, Object)

Tries to set the value of the property with the specified name.

Declaration
bool TrySetValue(object instance, string propertyName, object value)
Parameters
Type Name Description
System.Object instance

The instance.

System.String propertyName

Name of the property.

System.Object value

The value.

Returns
Type Description
System.Boolean

true if the value could be set; otherwise false.

Remarks

If a property with the provided name is not found, the method just returns. Also, the method just returns if the instance passed is null.

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>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractTypeInfo(ITypeInfo)
TypeExtensions.GetAbstractType(ITypeInfo)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
LocalizationHelper.GetLocalization(ITypeInfo)
ReflectionHelper.GetTypeInfo(Object)
TypeInfoExtensions.AsType(ITypeInfo)
TypeInfoExtensions.IsGenericType(ITypeInfo)
TypeInfoExtensions.IsGenericTypeDefinition(ITypeInfo)
TypeInfoExtensions.IsConstructedGenericType(ITypeInfo)
TypeInfoExtensions.GetDeclaredMembers(ITypeInfo)
AttributeProviderExtensions.GetAttribute<TAttribute>(IAttributeProvider)
RuntimeTypeInfoExtensions.CreateInstance(IRuntimeTypeInfo, Object[])
RuntimeTypeInfoExtensions.GetClassifierKind(IRuntimeTypeInfo)
RuntimeTypeInfoExtensions.IsExcludedFromModel(IAttributeProvider)
RuntimeTypeInfoExtensions.IsModelType(IRuntimeTypeInfo)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX