Generated by DocFX

Class Result

Class Result.

Inheritance
System.Object
Result
Result<T>
Namespace: ISynergy.Framework.UI.Models
Assembly: ISynergy.Framework.UI.dll
Syntax
public class Result : object

Properties

View Source

Description

Gets or sets the description.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

The description.

View Source

Exception

Gets or sets the exception.

Declaration
public Exception Exception { get; set; }
Property Value
Type Description
Exception

The exception.

View Source

IsOk

Gets or sets a value indicating whether this instance is ok.

Declaration
public bool IsOk { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is ok; otherwise, false.

View Source

Message

Gets or sets the message.

Declaration
public string Message { get; set; }
Property Value
Type Description
System.String

The message.

Methods

View Source

Error(Exception)

Errors the specified ex.

Declaration
public static Result Error(Exception ex)
Parameters
Type Name Description
Exception ex

The ex.

Returns
Type Description
Result

Result.

View Source

Error(String, String)

Errors the specified message.

Declaration
public static Result Error(string message, string description = null)
Parameters
Type Name Description
System.String message

The message.

System.String description

The description.

Returns
Type Description
Result

Result.

View Source

Ok()

Oks this instance.

Declaration
public static Result Ok()
Returns
Type Description
Result

Result.

View Source

Ok(String, String)

Oks the specified message.

Declaration
public static Result Ok(string message, string description = null)
Parameters
Type Name Description
System.String message

The message.

System.String description

The description.

Returns
Type Description
Result

Result.

View Source

ToString()

Returns a that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
System.String

A that represents this instance.

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)