Show / Hide Table of Contents

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()
Namespace: AssetRipper.SourceGenerated.Extensions
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
Name Description
T1
T2
| 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 Description
T2
Type Parameters
Name Description
T1
T2
| 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 Description
T2
Type Parameters
Name Description
T1
T2
| 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
Remarks

.NET Core 3.0+ only. https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.getenumerator?view=net-7.0#remarks

| 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 Description
TValue
Type Parameters
Name Description
TKey
TValue
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾