Show / Hide Table of Contents
Improve this Doc View Source

Class Success<T>

Represents the successful outcome of an operation. 
Inheritance
System.Object
Try<T>
Success<T>
Namespace:NiceTry
Assembly:NiceTry.dll
Syntax
public sealed class Success<T> : Try<T>, IComparable<Try<T>>, IEquatable<Try<T>>, IComparable, IStructuralComparable, IStructuralEquatable
Type Parameters
Name Description
T

Methods

| Improve this Doc View Source

IfFailure(Action<Exception>)

Declaration
public override void IfFailure(Action<Exception> sideEffect)
Parameters
Type Name Description
System.Action<System.Exception> sideEffect
| Improve this Doc View Source

IfSuccess(Action<T>)

Declaration
public override void IfSuccess(Action<T> sideEffect)
Parameters
Type Name Description
System.Action<T> sideEffect
| Improve this Doc View Source

Match(Action<T>, Action<Exception>)

Declaration
public override void Match(Action<T> success, Action<Exception> failure)
Parameters
Type Name Description
System.Action<T> success
System.Action<System.Exception> failure
| Improve this Doc View Source

Match<B>(Func<T, B>, Func<Exception, B>)

Declaration
public override B Match<B>(Func<T, B> success, Func<Exception, B> failure)
Parameters
Type Name Description
System.Func<T, B> success
System.Func<System.Exception, B> failure
Returns
Type Description
B
Type Parameters
Name Description
B
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX