Class IDictionaryExtensions
Inheritance
System.Object
IDictionaryExtensions
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()
Assembly: AssetRipper.SourceGenerated.Extensions.dll
Syntax
public static class IDictionaryExtensions
Methods
|
Improve this Doc
View Source
AddRange<T1, T2>(IDictionary<T1, T2>, IReadOnlyDictionary<T1, T2>)
Declaration
public static void AddRange<T1, T2>(this IDictionary<T1, T2> _this, IReadOnlyDictionary<T1, T2> source)
Parameters
Type |
Name |
Description |
IDictionary<T1, T2> |
_this |
|
IReadOnlyDictionary<T1, T2> |
source |
|
Type Parameters
|
Improve this Doc
View Source
GetOrAdd<T1, T2>(IDictionary<T1, T2>, T1)
Declaration
public static T2 GetOrAdd<T1, T2>(this IDictionary<T1, T2> _this, T1 key)
where T2 : new()
Parameters
Type |
Name |
Description |
IDictionary<T1, T2> |
_this |
|
T1 |
key |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetOrAdd<T1, T2>(IDictionary<T1, T2>, T1, Func<T2>)
Declaration
public static T2 GetOrAdd<T1, T2>(this IDictionary<T1, T2> _this, T1 key, Func<T2> factory)
Parameters
Type |
Name |
Description |
IDictionary<T1, T2> |
_this |
|
T1 |
key |
|
Func<T2> |
factory |
|
Returns
Type Parameters
|
Improve this Doc
View Source
RemoveAll<TKey, TValue>(Dictionary<TKey, TValue>, Predicate<KeyValuePair<TKey, TValue>>)
Declaration
public static void RemoveAll<TKey, TValue>(this Dictionary<TKey, TValue> source, Predicate<KeyValuePair<TKey, TValue>> predicate)
Parameters
Type |
Name |
Description |
Dictionary<TKey, TValue> |
source |
|
Predicate<KeyValuePair<TKey, TValue>> |
predicate |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
|
Improve this Doc
View Source
TryGetValue<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey)
Declaration
public static TValue TryGetValue<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> _this, TKey key)
Parameters
Type |
Name |
Description |
IReadOnlyDictionary<TKey, TValue> |
_this |
|
TKey |
key |
|
Returns
Type Parameters
Name |
Description |
TKey |
|
TValue |
|