Interface IRuntimeMethodInfo
Contract for a dynamic MethodInfo.
Inherited Members
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
Namespace: Kephas.Runtime
Assembly: Kephas.Core.dll
Syntax
public interface IRuntimeMethodInfo : IMethodInfo, IRuntimeElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Properties
| Improve this Doc View SourceIsStatic
Gets a value indicating whether this method is static.
Declaration
bool IsStatic { get; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this method is static, false if not. |
MethodInfo
Gets the method information.
Declaration
MethodInfo MethodInfo { get; }
Property Value
Type | Description |
---|---|
System.Reflection.MethodInfo | The method information. |
Parameters
Gets the runtime parameters.
Declaration
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
IRuntimeTypeInfo ReturnType { get; }
Property Value
Type | Description |
---|---|
IRuntimeTypeInfo | The return type of the method. |
Methods
| Improve this Doc View SourceTryInvoke(Object, IEnumerable<Object>, out Object)
Tries to invokes the specified method on the provided instance.
Declaration
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. |