Unit Struct

A unit type is a type that allows only one value (and thus can hold no information)

DECLARATION
[Serializable]
public struct Unit : IEquatable<Unit>
NAMESPACE
LanguageExt

Fields

Default
DECLARATION
public static readonly Unit Default

Methods

Equals(object)
PARAMETERS
obj
object
DECLARATION
[Pure]
public override bool Equals(object obj)
RETURNS
bool
Equals(Unit)
PARAMETERS
other
Unit
DECLARATION
[Pure]
public bool Equals(Unit other)
RETURNS
bool
GetHashCode()
DECLARATION
[Pure]
public override int GetHashCode()
RETURNS
int
Return<T>(T)
SUMMARY

Provide an alternative value to unit

PARAMETERS
anything
T
Alternative value
DECLARATION
[Pure]
public T Return<T>(T anything)
RETURNS
T
Alternative value
Return<T>(Func<T>)
SUMMARY

Provide an alternative value to unit

PARAMETERS
anything
Func<T>
Alternative value
DECLARATION
[Pure]
public T Return<T>(Func<T> anything)
RETURNS
T
Alternative value
ToString()
DECLARATION
[Pure]
public override string ToString()
RETURNS
string