[This is preliminary documentation and is subject to change.]

Author: Đonny

Implements type that can contain either value of type T1 ore value of type T2. It cannot contain both values at the same time.

Namespace: Tools.DataStructuresT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public class T1orT2<T1, T2> : Cloenable<IT1orT2<T1, T2>>, 
	IT1orT2<T1, T2>
Visual Basic
Public Class T1orT2(Of T1, T2) _
	Inherits Cloenable(Of IT1orT2(Of T1, T2)) _
	Implements IT1orT2(Of T1, T2)
Visual C++
generic<typename T1, typename T2>
public ref class T1orT2 : public Cloenable<IT1orT2<T1, T2>^>, 
	IT1orT2<T1, T2>
F#
type T1orT2<'T1, 'T2> =  
    class
        inherit Cloenable<IT1orT2<'T1, 'T2>>
        interface IT1orT2<'T1, 'T2>
    end
JScript
JScript does not support generic types or methods.

Type Parameters

T1
One of alternativelly stored types
T2
One of alternativelly stored types

Remarks

Although rhis class implements IPair<(Of <(<'T1, T2>)>)> through IT1orT2<(Of <(<'T1, T2>)>)> be careful when utilizing this implementation because behaviour of IT1orT2<(Of <(<'T1, T2>)>)> is different when storing values (it can contain only one value at the sam time). Consider utilizing this inheritance only in read-only way.

Inheritance Hierarchy

System..::..Object
  Tools..::..Cloenable<(Of <(<'IT1orT2<(Of <(<'T1, T2>)>)>>)>)>
    Tools.DataStructuresT.GenericT..::..T1orT2<(Of <(<'T1, T2>)>)>
      Tools.DrawingT..::..IconOrBitmap

See Also

Collapse/expand Version History

1.5.2