public readonly struct Result<T>
Public Structure Result(Of T)[<SealedAttribute>]
type Result<'T> =
struct
inherit ValueType
end| ResultT(Exception) | 初始化ResultT结构,将异常信息作为结果消息。 |
| ResultT(T) | 初始化ResultT结构,使用成功作为结果代码和消息。 |
| ResultT(ResultCode) | 初始化ResultT结构,使用结果代码的描述作为消息。 |
| ResultT(ResultCode, String) | 初始化ResultT结构,使用默认值作为结果值。 |
| ResultT(T, ResultCode, String) | 初始化ResultT结构。 |
| IsSuccess | |
| Message | |
| ResultCode | |
| Value | 获取结果值。 |
| Equals | Indicates whether this instance and a specified object are equal. (继承自 ValueType。) |
| GetHashCode | Returns the hash code for this instance. (继承自 ValueType。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| ToString | Returns the fully qualified type name of this instance. (继承自 ValueType。) |
| (Result to ResultT) | 隐式转换运算符,将Result类型转换为ResultT类型。 |
| (T to ResultT) | 隐式类型转换操作符,将值类型T转换为ResultT类型。 |
| (ResultT to Result) | 隐式转换运算符,将ResultT类型的对象转换为Result类型的对象。 |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |
| ToResultT | (由 ResultExtensions 定义。) |