Interface IMethodInfo
Contract for method information.
Inherited Members
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
Namespace: Kephas.Reflection
Assembly: Kephas.Core.dll
Syntax
public interface IMethodInfo : IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Properties
| Improve this Doc View SourceParameters
Gets the method parameters.
Declaration
IEnumerable<IParameterInfo> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IParameterInfo> | The method parameters. |
ReturnType
Gets the return type of the method.
Declaration
ITypeInfo ReturnType { get; }
Property Value
Type | Description |
---|---|
ITypeInfo | The return type of the method. |
Methods
| Improve this Doc View SourceInvoke(Object, IEnumerable<Object>)
Invokes the specified method on the provided instance.
Declaration
object Invoke(object instance, IEnumerable<object> args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | instance | The instance. |
System.Collections.Generic.IEnumerable<System.Object> | args | The arguments. |
Returns
Type | Description |
---|---|
System.Object | The invocation result. |