public class Method
Public Class Method
type Method = class end
Method | 初始化一个动态调用方法 |
DynamicBuilderType | 获取调用器的构建类型。 |
HasReturn | 是否具有返回值。当返回值为Task时,也会认为没有返回值。 |
Info | 方法信息 |
Name | 获取方法名 |
ReturnType |
返回值类型。
当方法为void或task时,为null 当方法为task泛型时,为泛型元素类型 |
TaskType | 返回值的Task类型。 |
CreateExpressionInvoker | 构建表达式树调用 |
CreateILInvoker | 构建IL调用 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
Invoke | 执行方法。 |
InvokeAsync(Object, Object) | 异步执行方法。 |
InvokeAsyncTResult(Object, Object) | 调用异步结果 |
InvokeObjectAsync |
执行方法。
当方法为void或task时,会异常 当方法为task泛型时,会await后的值 支持调用方为UI主线程。 |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |