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

Public Member Functions

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

Public Attributes

readonly T Value
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Either< T, U >
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 32 of file Either.cs.

Constructor & Destructor Documentation

◆ EitherT()

Barotrauma.EitherT< T, U >.EitherT ( value)

Definition at line 36 of file Either.cs.

Member Function Documentation

◆ Equals()

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

◆ GetHashCode()

override int Barotrauma.EitherT< T, U >.GetHashCode ( )
virtual

◆ ToString()

override? string Barotrauma.EitherT< T, U >.ToString ( )
virtual

◆ TryCast< V >()

override bool Barotrauma.EitherT< T, U >.TryCast< V > ( out V  v)
virtual

Implements Barotrauma.Either< T, U >.

Definition at line 44 of file Either.cs.

◆ TryGet() [1/2]

override bool Barotrauma.EitherT< T, U >.TryGet ( out T  t)
virtual

Implements Barotrauma.Either< T, U >.

Definition at line 41 of file Either.cs.

◆ TryGet() [2/2]

override bool Barotrauma.EitherT< T, U >.TryGet ( out U  u)
virtual

Implements Barotrauma.Either< T, U >.

Definition at line 42 of file Either.cs.

Member Data Documentation

◆ Value

readonly T Barotrauma.EitherT< T, U >.Value

Definition at line 34 of file Either.cs.