Table of Contents

Method Fail

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Fail(string)

Creates a new Alternet.Common.Result for unsuccessful action.

public static Result Fail(string message)

Parameters

message string

Message describes reason of failure.

Returns

Result

New Alternet.Common.Result object contains information about error.

Fail<T>(string)

Creates a new generic Alternet.Common.Result for unsuccessful action.

public static Result<T> Fail<T>(string message)

Parameters

message string

Message describes reason of failure.

Returns

Result<T>

New Alternet.Common.Result object contains information about error.

Type Parameters

T

Type of object related to the action.