Class MethodReferenceExtensions
Extension methods for
Inheritance
System.Object
MethodReferenceExtensions
Namespace: Cortex.Net.Fody
Assembly: Cortex.Net.Fody.dll
Syntax
public static class MethodReferenceExtensions : object
Methods
| Improve this Doc View SourceGetActionType(MethodDefinition, WeavingContext)
Gets the Action type for the private field that is added to the class for the private method.
Declaration
public static TypeReference GetActionType(this MethodDefinition methodDefinition, WeavingContext weavingContext)
Parameters
Type | Name | Description |
---|---|---|
MethodDefinition | methodDefinition | The method definition for the action. |
WeavingContext | weavingContext | The weaving context. |
Returns
Type | Description |
---|---|
TypeReference | A type reference. |
GetFunctionType(MethodDefinition, WeavingContext)
Gets the Function type for the computed method that is passed.
Declaration
public static TypeReference GetFunctionType(this MethodDefinition methodDefinition, WeavingContext weavingContext)
Parameters
Type | Name | Description |
---|---|---|
MethodDefinition | methodDefinition | The method definition for the function. |
WeavingContext | weavingContext | The weaving context. |
Returns
Type | Description |
---|---|
TypeReference | A type reference. |
GetGenericMethodOnInstantance(MethodReference, TypeReference)
Gets a method reference to the generic method on the instantiated type specified.
Declaration
public static MethodReference GetGenericMethodOnInstantance(this MethodReference genericMethod, TypeReference instantiantedType)
Parameters
Type | Name | Description |
---|---|---|
MethodReference | genericMethod | A reference to the generic method. |
TypeReference | instantiantedType | The instantiated type. |
Returns
Type | Description |
---|---|
MethodReference | A new method reference. |