Table of Contents

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

list IList<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

list List<T>

The respective list.

Returns

T[]

The internal array of the list.

Type Parameters

T

The 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

dict IDictionary<K, V>

The respective dictionary.

key K

The respective key.

Returns

V

The value if exists, else null.

Type Parameters

K

The type of the key.

V

The type of the value.