Property | Type | Description | |
---|---|---|---|
MaxSize | int |
Method | Description | |
---|---|---|
Create ( ) : Expression |
Provides an expression for creating a tuple with the specified values.
|
|
GetAccessPath ( |
Gets the series of properties that needs to be accessed to access a logical item in a potentially nested tuple.
|
|
GetNestedValue ( int size, int index ) : object |
Gets the value at the given index for a tuple of the given size. This get supports walking through nested tuples to get the correct final index.
|
|
GetSize ( |
Gets the number of usable slots in the provided Tuple type including slots available in nested tuples.
|
|
GetTupleType ( int size ) : |
Gets the unbound generic Tuple type which has at lease size slots or null if a large enough tuple is not available.
|
|
GetTupleValues ( |
Gets the values from a tuple including unpacking nested values.
|
|
GetValue ( int index ) : object | ||
MakeTuple ( |
Creates a new instance of tupleType with the specified args. If the tuple is a nested tuple the values are added in their nested forms.
|
|
MakeTupleType ( ) : |
Creates a generic tuple with the specified types. If the number of slots fits within the maximum tuple size then we simply create a single tuple. If it's greater then we create nested tuples (e.g. a Tuple`2 which contains a Tuple`128 and a Tuple`8 if we had a size of 136).
|
|
SetNestedValue ( int size, int index, object value ) : void |
Sets the value at the given index for a tuple of the given size. This set supports walking through nested tuples to get the correct final index.
|
|
SetValue ( int index, object value ) : void |
Method | Description | |
---|---|---|
CreateNew ( |
||
CreateTupleInstance ( |
||
GetAccessPath ( int size, int index ) : IEnumerable |
||
GetAccessProperties ( |
Gets the series of properties that needs to be accessed to access a logical item in a potentially nested tuple.
|
|
GetTupleValues ( |
||
MakeTuple ( |
||
MakeTupleType ( |
||
PowerOfTwoRound ( int value ) : int |
public static GetAccessPath ( |
||
tupleType | ||
index | int | |
return | IEnumerable |
public GetNestedValue ( int size, int index ) : object | ||
size | int | |
index | int | |
return | object |
public static GetSize ( |
||
tupleType | ||
return | int |
public static GetTupleType ( int size ) : |
||
size | int | |
return |
public static GetTupleValues ( |
||
tuple | ||
return | object[] |
public abstract GetValue ( int index ) : object | ||
index | int | |
return | object |
public static MakeTuple ( |
||
tupleType | ||
return |
public SetNestedValue ( int size, int index, object value ) : void | ||
size | int | |
index | int | |
value | object | |
return | void |
public abstract SetValue ( int index, object value ) : void | ||
index | int | |
value | object | |
return | void |