Show / Hide Table of Contents

Class RuntimeMethodInfo

Implementation of IRuntimeMethodInfo for runtime methods.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
RuntimeMethodInfo
Implements
IRuntimeMethodInfo
IMethodInfo
IRuntimeElementInfo
IElementInfo
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IAttributeProvider
Inherited Members
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.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.Runtime
Assembly: Kephas.Core.dll
Syntax
public sealed class RuntimeMethodInfo : Expando, IRuntimeMethodInfo, IMethodInfo, IRuntimeElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider

Properties

| Improve this Doc View Source

Annotations

Gets the element annotations.

Declaration
public IEnumerable<object> Annotations { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Object>

The element annotations.

| Improve this Doc View Source

DeclaringContainer

Gets the parent element declaring this element.

Declaration
public IElementInfo DeclaringContainer { get; }
Property Value
Type Description
IElementInfo

The declaring element.

| Improve this Doc View Source

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.

| Improve this Doc View Source

IsStatic

Gets a value indicating whether this method is static.

Declaration
public bool IsStatic { get; }
Property Value
Type Description
System.Boolean

True if this method is static, false if not.

| Improve this Doc View Source

MethodInfo

Gets the method info.

Declaration
public MethodInfo MethodInfo { get; }
Property Value
Type Description
System.Reflection.MethodInfo
| Improve this Doc View Source

Name

Gets the name of the element.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The name of the element.

| Improve this Doc View Source

Parameters

Gets the runtime parameters.

Declaration
public IDictionary<string, IRuntimeParameterInfo> Parameters { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, IRuntimeParameterInfo>

The runtime parameters.

| Improve this Doc View Source

ReturnType

Gets the return type of the method.

Declaration
public IRuntimeTypeInfo ReturnType { get; }
Property Value
Type Description
IRuntimeTypeInfo

The return type of the method.

Methods

| Improve this Doc View Source

GetAttributes<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.

| Improve this Doc View Source

GetThisTypeInfo()

Gets the IRuntimeTypeInfo of this expando object.

Declaration
protected override ITypeInfo GetThisTypeInfo()
Returns
Type Description
ITypeInfo

The IRuntimeTypeInfo of this expando object.

Overrides
ExpandoBase.GetThisTypeInfo()
| Improve this Doc View Source

GetUnderlyingElementInfo()

Gets the underlying member information.

Declaration
public ICustomAttributeProvider GetUnderlyingElementInfo()
Returns
Type Description
System.Reflection.ICustomAttributeProvider

The underlying member information.

| Improve this Doc View Source

Invoke(Object, IEnumerable<Object>)

The invoke.

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

The instance.

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

The args.

Returns
Type Description
System.Object

The System.Object.

| Improve this Doc View Source

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
System.Object.ToString()
| Improve this Doc View Source

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

Tries to invokes the specified method on the provided instance.

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

The instance.

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.

Explicit Interface Implementations

| Improve this Doc View Source

IMethodInfo.Parameters

Gets the method parameters.

Declaration
IEnumerable<IParameterInfo> IMethodInfo.Parameters { get; }
Returns
Type Description
System.Collections.Generic.IEnumerable<IParameterInfo>

The method parameters.

| Improve this Doc View Source

IMethodInfo.ReturnType

Gets the return type of the method.

Declaration
ITypeInfo IMethodInfo.ReturnType { get; }
Returns
Type Description
ITypeInfo

The return type of the method.

Implements

IRuntimeMethodInfo
IMethodInfo
IRuntimeElementInfo
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>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
AttributeProviderExtensions.GetAttribute<TAttribute>(IAttributeProvider)
RuntimeTypeInfoExtensions.IsExcludedFromModel(IAttributeProvider)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX