TypeUnification
ReferencesCreate a collection of a single type from a stream of mixed types. This is useful for example when operating on collections which contain integer, doubles and complex numbers, and you wish to convert everything to the most complex type present.
Constructors
Properties
Indexers
Methods
AddConversion<T1, T2>
#Add a conversion from one type to another.
Parameters:
| convert (Func<T1, T2>) | Conversion method. |
AddValue
#Add a value to this unification.
Parameters:
| value (object) | Value to add. |
Returns: True if value was added.
FindConversion
#Find the conversion method between two types.
ToArray<T>
#Convert this collection to an array of a specific type.
Parameters:
| skipNulls (bool) | If true nulls will not be included in the array. |