Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateArraySortHelper() [2/2]

static IArraySortHelper< TKey, TValue > System.Collections.Generic.ArraySortHelper< TKey, TValue >.CreateArraySortHelper ( )
inlinestaticprivate

Definition at line 252 of file ArraySortHelper.cs.

253 {
254 if (typeof(IComparable<TKey>).IsAssignableFrom(typeof(TKey)))
255 {
256 return (IArraySortHelper<TKey, TValue>)RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter((RuntimeType)typeof(GenericArraySortHelper<string, string>), (RuntimeType)typeof(TKey), (RuntimeType)typeof(TValue));
257 }
258 return new ArraySortHelper<TKey, TValue>();
259 }

References System.RuntimeTypeHandle.CreateInstanceForAnotherGenericParameter().