Class Result
Inheritance
System.Object
Result
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TelegramModularFramework.Modules
Assembly: TelegramModularFramework.dll
Syntax
public class Result
Properties
| Improve this Doc View SourceException
Declaration
public Exception? Exception { get; }
Property Value
Type | Description |
---|---|
System.Nullable<Exception> |
Success
Declaration
public bool Success { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceFromError(Exception)
Declaration
public static Result FromError(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception |
Returns
Type | Description |
---|---|
Result |
FromSuccess()
Declaration
public static Result FromSuccess()
Returns
Type | Description |
---|---|
Result |