Static Public Member Functions | List of all members
CollectionExtensions Class Reference

Detailed Description

Polyfill for collection things I expect in the .net libraries

using DWulf.LanguageExtensions; will get you access to these.

Static Public Member Functions

static T[]  ToArray< T, V > (this Dictionary< T, V >.KeyCollection self)
 
static V[]  ToArray< T, V > (this Dictionary< T, V >.ValueCollection self)
 

Member Function Documentation

◆ ToArray< T, V >() [1/2]

static T [] ToArray< T, V > ( this Dictionary< T, V >.KeyCollection  self )
inlinestatic

this is supported in higher versions of Mono than Unity uses.

Unity can compile this without issue, but MonoDevelop needs explicit types,

BundleFile[] bundles = this.bundles.Keys.ToArray<AssetId, BundleFile>();

Template Parameters
T
V
Parameters
self
Returns

◆ ToArray< T, V >() [2/2]

static V [] ToArray< T, V > ( this Dictionary< T, V >.ValueCollection  self )
inlinestatic

this is supported in higher versions of Mono than Unity uses.

Unity can compile this without issue, but MonoDevelop needs explicit types,

BundleFile[] bundles = this.bundles.Values.ToArray<AssetId, BundleFilegt;();

Template Parameters
T
V
Parameters
self
Returns