Barotrauma Client Doc
Barotrauma.Either< T, U > Class Template Referenceabstract
Inheritance diagram for Barotrauma.Either< T, U >:
Barotrauma.EitherT< T, U > Barotrauma.EitherU< T, U >

Public Member Functions

abstract bool TryGet (out T t)
 
abstract bool TryGet (out U u)
 
abstract bool TryCast< V > (out V v)
 
abstract override? string ToString ()
 
abstract override bool Equals (object? obj)
 
abstract override int GetHashCode ()
 

Static Public Member Functions

static implicit operator Either< T, U > (T t)
 
static implicit operator Either< T, U > (U u)
 
static operator T (Either< T, U > e)
 
static operator U (Either< T, U > e)
 
static bool operator== (Either< T, U >? a, Either< T, U >? b)
 
static bool operator!= (Either< T, U >? a, Either< T, U >? b)
 

Detailed Description

Type Constraints
T :notnull 
U :notnull 

Definition at line 6 of file Either.cs.

Member Function Documentation

◆ Equals()

abstract override bool Barotrauma.Either< T, U >.Equals ( object?  obj)
pure virtual

◆ GetHashCode()

abstract override int Barotrauma.Either< T, U >.GetHashCode ( )
pure virtual

◆ operator Either< T, U >() [1/2]

static implicit Barotrauma.Either< T, U >.operator Either< T, U > ( t)
static

◆ operator Either< T, U >() [2/2]

static implicit Barotrauma.Either< T, U >.operator Either< T, U > ( u)
static

◆ operator T()

static Barotrauma.Either< T, U >.operator T ( Either< T, U >  e)
explicitstatic

◆ operator U()

static Barotrauma.Either< T, U >.operator U ( Either< T, U >  e)
explicitstatic

◆ operator!=()

static bool Barotrauma.Either< T, U >.operator!= ( Either< T, U >?  a,
Either< T, U >?  b 
)
static

◆ operator==()

static bool Barotrauma.Either< T, U >.operator== ( Either< T, U >?  a,
Either< T, U >?  b 
)
static

◆ ToString()

abstract override? string Barotrauma.Either< T, U >.ToString ( )
pure virtual

◆ TryCast< V >()

abstract bool Barotrauma.Either< T, U >.TryCast< V > ( out V  v)
pure virtual

◆ TryGet() [1/2]

abstract bool Barotrauma.Either< T, U >.TryGet ( out T  t)
pure virtual

◆ TryGet() [2/2]

abstract bool Barotrauma.Either< T, U >.TryGet ( out U  u)
pure virtual