[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.GenericTAssembly: 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 |
|---|
|
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
Tools..::..Cloenable<(Of <(<'IT1orT2<(Of <(<'T1, T2>)>)>>)>)>
Tools.DataStructuresT.GenericT..::..T1orT2<(Of <(<'T1, T2>)>)>
Tools.DrawingT..::..IconOrBitmap
See Also
Version History
1.5.2
- (Release) VersionAttribute and AuthorAttribute removed