Class CollectionExtensions
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
public static class CollectionExtensions
- Inheritance
-
CollectionExtensions
- Inherited Members
Methods
GetArrayByType<T>(IList<T>)
public static T[] GetArrayByType<T>(this IList<T> list)
Parameters
listIList<T>
Returns
- T[]
Type Parameters
T
GetInternalArray<T>(List<T>)
Gets the internal array of a List<T>.
public static T[] GetInternalArray<T>(this List<T> list)
Parameters
listList<T>The respective list.
Returns
- T[]
The internal array of the list.
Type Parameters
TThe type of the elements.
Get<K, V>(IDictionary<K, V>, K)
Tries to get a value from a IDictionary<TKey, TValue>.
public static V? Get<K, V>(this IDictionary<K, V> dict, K key)
Parameters
dictIDictionary<K, V>The respective dictionary.
keyKThe respective key.
Returns
- V
The value if exists, else
null.
Type Parameters
KThe type of the key.
VThe type of the value.