Entitas Redux
JCMG.EntitasRedux.DictionaryTools Class Reference

Static Public Member Functions

static Dictionary< T, TV > ShallowCopy< T, TV > (Dictionary< T, TV > dictionary)
 Returns a shallow copy of dictionary and it's contents. More...
 
static Dictionary< T, TV > DeepCopy< T, TV > (Dictionary< T, TV > dictionary)
 Returns a deep copy of dictionary where TV implements ICloneable. More...
 
static Dictionary< T, List< TV > > DeepCopyListValue< T, TV > (Dictionary< T, List< TV >> dictionary)
 Returns a deep copy of dictionary where it's value type is a List<TV> and TV implements ICloneable. More...
 
static Dictionary< T, TV[]> DeepCopyArrayValue< T, TV > (Dictionary< T, TV[]> dictionary)
 Returns a deep copy of dictionary where it's value type is a 1D array of TV which implements ICloneable. More...
 
static Dictionary< T, TV[][]> DeepCopyArrayValue< T, TV > (Dictionary< T, TV[][]> dictionary)
 Returns a deep copy of dictionary where it's value type is a 2D array of TV which implements ICloneable. More...
 
static Dictionary< T, TV[][][]> DeepCopyArrayValue< T, TV > (Dictionary< T, TV[][][]> dictionary)
 Returns a deep copy of dictionary where it's value type is a 3D array of TV which implements ICloneable. More...
 
static Dictionary< T, TV[][][][]> DeepCopyArrayValue< T, TV > (Dictionary< T, TV[][][][]> dictionary)
 Returns a deep copy of dictionary where it's value type is a 4D array of TV which implements ICloneable. More...
 

Detailed Description

Definition at line 31 of file DictionaryTools.cs.

Member Function Documentation

◆ DeepCopy< T, TV >()

static Dictionary<T, TV> JCMG.EntitasRedux.DictionaryTools.DeepCopy< T, TV > ( Dictionary< T, TV >  dictionary)
static

Returns a deep copy of dictionary where TV implements ICloneable.

Type Constraints
TV :ICloneable 

Definition at line 46 of file DictionaryTools.cs.

◆ DeepCopyArrayValue< T, TV >() [1/4]

static Dictionary<T, TV[]> JCMG.EntitasRedux.DictionaryTools.DeepCopyArrayValue< T, TV > ( Dictionary< T, TV[]>  dictionary)
static

Returns a deep copy of dictionary where it's value type is a 1D array of TV which implements ICloneable.

Type Constraints
TV :ICloneable 

Definition at line 79 of file DictionaryTools.cs.

◆ DeepCopyArrayValue< T, TV >() [2/4]

static Dictionary<T, TV[][]> JCMG.EntitasRedux.DictionaryTools.DeepCopyArrayValue< T, TV > ( Dictionary< T, TV[][]>  dictionary)
static

Returns a deep copy of dictionary where it's value type is a 2D array of TV which implements ICloneable.

Type Constraints
TV :ICloneable 

Definition at line 96 of file DictionaryTools.cs.

◆ DeepCopyArrayValue< T, TV >() [3/4]

static Dictionary<T, TV[][][]> JCMG.EntitasRedux.DictionaryTools.DeepCopyArrayValue< T, TV > ( Dictionary< T, TV[][][]>  dictionary)
static

Returns a deep copy of dictionary where it's value type is a 3D array of TV which implements ICloneable.

Type Constraints
TV :ICloneable 

Definition at line 113 of file DictionaryTools.cs.

◆ DeepCopyArrayValue< T, TV >() [4/4]

static Dictionary<T, TV[][][][]> JCMG.EntitasRedux.DictionaryTools.DeepCopyArrayValue< T, TV > ( Dictionary< T, TV[][][][]>  dictionary)
static

Returns a deep copy of dictionary where it's value type is a 4D array of TV which implements ICloneable.

Type Constraints
TV :ICloneable 

Definition at line 130 of file DictionaryTools.cs.

◆ DeepCopyListValue< T, TV >()

static Dictionary<T, List<TV> > JCMG.EntitasRedux.DictionaryTools.DeepCopyListValue< T, TV > ( Dictionary< T, List< TV >>  dictionary)
static

Returns a deep copy of dictionary where it's value type is a List<TV> and TV implements ICloneable.

Type Constraints
TV :ICloneable 

Definition at line 62 of file DictionaryTools.cs.

◆ ShallowCopy< T, TV >()

static Dictionary<T, TV> JCMG.EntitasRedux.DictionaryTools.ShallowCopy< T, TV > ( Dictionary< T, TV >  dictionary)
static

Returns a shallow copy of dictionary and it's contents.

Definition at line 36 of file DictionaryTools.cs.


The documentation for this class was generated from the following file: