Class RuntimeMethodInfo
Implementation of IRuntimeMethodInfo for runtime methods.
Implements
Inherited Members
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 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. |
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 method is static.
Declaration
public bool IsStatic { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this method is static, false if not. |
MethodInfo
Gets the method info.
Declaration
public MethodInfo MethodInfo { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo |
Name
Gets the name of the element.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the element. |
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. |
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 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 IRuntimeTypeInfo of this expando object.
Declaration
protected override ITypeInfo GetThisTypeInfo()
Returns
Type | Description |
---|---|
ITypeInfo | The IRuntimeTypeInfo 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. |
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. |
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
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 SourceIMethodInfo.Parameters
Gets the method parameters.
Declaration
IEnumerable<IParameterInfo> IMethodInfo.Parameters { get; }
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IParameterInfo> | The method parameters. |
IMethodInfo.ReturnType
Gets the return type of the method.
Declaration
ITypeInfo IMethodInfo.ReturnType { get; }
Returns
Type | Description |
---|---|
ITypeInfo | The return type of the method. |