Class ResettableT1CollectionCaches<T1, T2>
Caches collections of multiple generics.
Inheritance
System.Object
ResettableT1CollectionCaches<T1, T2>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GameKit.Dependencies.Utilities
Assembly: GameKit.Dependencies.dll
Syntax
public static class ResettableT1CollectionCaches<T1, T2>
where T1 : IResettable, new()
Type Parameters
Name | Description |
---|---|
T1 | |
T2 |
Methods
RetrieveDictionary()
Retrieves a collection.
Declaration
public static Dictionary<T1, T2> RetrieveDictionary()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<T1, T2> |
Store(Dictionary<T1, T2>)
Stores a collection.
Declaration
public static void Store(Dictionary<T1, T2> value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<T1, T2> | value | Value to store. |
StoreAndDefault(ref Dictionary<T1, T2>)
Stores a collection and sets the original reference to default. Method will not execute if value is null.
Declaration
public static void StoreAndDefault(ref Dictionary<T1, T2> value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<T1, T2> | value | Value to store. |