Class Result<T>
Class Result. Implements the Result
Inherited Members
Namespace: ISynergy.Framework.UI.Models
Assembly: ISynergy.Framework.UI.dll
Syntax
public class Result<T> : Result
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
View SourceValue
Gets the value.
Declaration
public T Value { get; }
Property Value
| Type | Description |
|---|---|
| T | The value. |
Methods
View SourceError(Exception, T)
Errors the specified ex.
Declaration
public static Result<T> Error(Exception ex, T result = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | ex | The ex. |
| T | result | The result. |
Returns
| Type | Description |
|---|---|
| Result<T> | Result<T>. |
Error(String, String, T)
Errors the specified message.
Declaration
public static Result<T> Error(string message = null, string description = null, T result = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message. |
| System.String | description | The description. |
| T | result | The result. |
Returns
| Type | Description |
|---|---|
| Result<T> | Result<T>. |
Ok(T)
Oks the specified result.
Declaration
public static Result<T> Ok(T result = null)
Parameters
| Type | Name | Description |
|---|---|---|
| T | result | The result. |
Returns
| Type | Description |
|---|---|
| Result<T> | Result<T>. |
Ok(String, String, T)
Oks the specified message.
Declaration
public static Result<T> Ok(string message = null, string description = null, T result = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | The message. |
| System.String | description | The description. |
| T | result | The result. |
Returns
| Type | Description |
|---|---|
| Result<T> | Result<T>. |
Extension Methods
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)