### YamlMime:ManagedReference items: - uid: adas_core.Domain.Utils.DictionaryEx commentId: T:adas_core.Domain.Utils.DictionaryEx id: DictionaryEx parent: adas_core.Domain.Utils children: - adas_core.Domain.Utils.DictionaryEx.GetValue``2(System.Collections.Generic.IDictionary{``0,``1},``0,``1) - adas_core.Domain.Utils.DictionaryEx.ToListString``2(System.Collections.Generic.IDictionary{``0,``1},System.String,System.String) - adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn``2(System.Collections.Generic.IDictionary{``0,``1},``0) langs: - csharp - vb name: DictionaryEx nameWithType: DictionaryEx fullName: adas_core.Domain.Utils.DictionaryEx type: Class source: remote: path: adas-core.Domain/Utils/DictionaryEx.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: DictionaryEx path: ../../adas-core.Domain/Utils/DictionaryEx.cs startLine: 5 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: Provides static extension methods to augment the functionality of dictionary types. example: [] syntax: content: public static class DictionaryEx content.vb: Public Module DictionaryEx inheritance: - System.Object inheritedMembers: - 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 - uid: adas_core.Domain.Utils.DictionaryEx.GetValue``2(System.Collections.Generic.IDictionary{``0,``1},``0,``1) commentId: M:adas_core.Domain.Utils.DictionaryEx.GetValue``2(System.Collections.Generic.IDictionary{``0,``1},``0,``1) id: GetValue``2(System.Collections.Generic.IDictionary{``0,``1},``0,``1) isExtensionMethod: true parent: adas_core.Domain.Utils.DictionaryEx langs: - csharp - vb name: GetValue(IDictionary, TK, TV?) nameWithType: DictionaryEx.GetValue(IDictionary, TK, TV?) fullName: adas_core.Domain.Utils.DictionaryEx.GetValue(System.Collections.Generic.IDictionary, TK, TV?) type: Method source: remote: path: adas-core.Domain/Utils/DictionaryEx.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: GetValue path: ../../adas-core.Domain/Utils/DictionaryEx.cs startLine: 14 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: Retrieves the value associated with the specified key from the dictionary, or returns the provided default value if the key is not found. example: [] syntax: content: public static TV? GetValue(this IDictionary dict, TK key, TV? defaultValue = default) parameters: - id: dict type: System.Collections.Generic.IDictionary{{TK},{TV}} description: The dictionary to search for the key. - id: key type: '{TK}' description: The key whose associated value should be returned. - id: defaultValue type: '{TV}' description: The value to return when the key is not present in the dictionary. Defaults to the default value of TV. typeParameters: - id: TK - id: TV return: type: '{TV}' description: The value associated with the key if found; otherwise, defaultValue. content.vb: Public Shared Function GetValue(Of TK, TV)(dict As IDictionary(Of TK, TV), key As TK, defaultValue As TV = Nothing) As TV overload: adas_core.Domain.Utils.DictionaryEx.GetValue* nameWithType.vb: DictionaryEx.GetValue(Of TK, TV)(IDictionary(Of TK, TV), TK, TV) fullName.vb: adas_core.Domain.Utils.DictionaryEx.GetValue(Of TK, TV)(System.Collections.Generic.IDictionary(Of TK, TV), TK, TV) name.vb: GetValue(Of TK, TV)(IDictionary(Of TK, TV), TK, TV) - uid: adas_core.Domain.Utils.DictionaryEx.ToListString``2(System.Collections.Generic.IDictionary{``0,``1},System.String,System.String) commentId: M:adas_core.Domain.Utils.DictionaryEx.ToListString``2(System.Collections.Generic.IDictionary{``0,``1},System.String,System.String) id: ToListString``2(System.Collections.Generic.IDictionary{``0,``1},System.String,System.String) isExtensionMethod: true parent: adas_core.Domain.Utils.DictionaryEx langs: - csharp - vb name: ToListString(IDictionary, string, string) nameWithType: DictionaryEx.ToListString(IDictionary, string, string) fullName: adas_core.Domain.Utils.DictionaryEx.ToListString(System.Collections.Generic.IDictionary, string, string) type: Method source: remote: path: adas-core.Domain/Utils/DictionaryEx.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: ToListString path: ../../adas-core.Domain/Utils/DictionaryEx.cs startLine: 26 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: Converts a dictionary into a formatted string by joining each key-value pair with a key separator and concatenating all pairs with an item separator. example: [] syntax: content: 'public static string ToListString(this IDictionary dict, string itemSeparator = ", ", string keySeparator = ": ")' parameters: - id: dict type: System.Collections.Generic.IDictionary{{TK},{TV}} description: The source dictionary whose entries will be converted to a string. - id: itemSeparator type: System.String description: The separator placed between each formatted key-value pair in the resulting string. - id: keySeparator type: System.String description: The separator placed between a key and its corresponding value within each pair. typeParameters: - id: TK - id: TV return: type: System.String description: A single string containing all dictionary entries formatted and joined using the specified separators. content.vb: 'Public Shared Function ToListString(Of TK, TV)(dict As IDictionary(Of TK, TV), itemSeparator As String = ", ", keySeparator As String = ": ") As String' overload: adas_core.Domain.Utils.DictionaryEx.ToListString* nameWithType.vb: DictionaryEx.ToListString(Of TK, TV)(IDictionary(Of TK, TV), String, String) fullName.vb: adas_core.Domain.Utils.DictionaryEx.ToListString(Of TK, TV)(System.Collections.Generic.IDictionary(Of TK, TV), String, String) name.vb: ToListString(Of TK, TV)(IDictionary(Of TK, TV), String, String) - uid: adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn``2(System.Collections.Generic.IDictionary{``0,``1},``0) commentId: M:adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn``2(System.Collections.Generic.IDictionary{``0,``1},``0) id: TryGetAndReturn``2(System.Collections.Generic.IDictionary{``0,``1},``0) isExtensionMethod: true parent: adas_core.Domain.Utils.DictionaryEx langs: - csharp - vb name: TryGetAndReturn(IDictionary, TKey) nameWithType: DictionaryEx.TryGetAndReturn(IDictionary, TKey) fullName: adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn(System.Collections.Generic.IDictionary, TKey) type: Method source: remote: path: adas-core.Domain/Utils/DictionaryEx.cs branch: document/release/1.0.1 repo: https://git.teralevel.io/adas/adas-core.git id: TryGetAndReturn path: ../../adas-core.Domain/Utils/DictionaryEx.cs startLine: 40 assemblies: - adas-core.Domain namespace: adas_core.Domain.Utils summary: Attempts to retrieve the value associated with the specified key from the dictionary, returning null if the key is not found. example: [] syntax: content: 'public static TValue? TryGetAndReturn(this IDictionary dictionary, TKey key) where TKey : notnull where TValue : class' parameters: - id: dictionary type: System.Collections.Generic.IDictionary{{TKey},{TValue}} description: The dictionary to search for the key. - id: key type: '{TKey}' description: The key whose associated value should be retrieved. typeParameters: - id: TKey - id: TValue return: type: '{TValue}' description: The value associated with the key, or null if the key was not found in the dictionary. content.vb: Public Shared Function TryGetAndReturn(Of TKey, TValue As Class)(dictionary As IDictionary(Of TKey, TValue), key As TKey) As TValue overload: adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn* nameWithType.vb: DictionaryEx.TryGetAndReturn(Of TKey, TValue)(IDictionary(Of TKey, TValue), TKey) fullName.vb: adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn(Of TKey, TValue)(System.Collections.Generic.IDictionary(Of TKey, TValue), TKey) name.vb: TryGetAndReturn(Of TKey, TValue)(IDictionary(Of TKey, TValue), TKey) references: - uid: adas_core.Domain.Utils commentId: N:adas_core.Domain.Utils href: adas_core.html name: adas_core.Domain.Utils nameWithType: adas_core.Domain.Utils fullName: adas_core.Domain.Utils spec.csharp: - uid: adas_core name: adas_core href: adas_core.html - name: . - uid: adas_core.Domain name: Domain href: adas_core.Domain.html - name: . - uid: adas_core.Domain.Utils name: Utils href: adas_core.Domain.Utils.html spec.vb: - uid: adas_core name: adas_core href: adas_core.html - name: . - uid: adas_core.Domain name: Domain href: adas_core.Domain.html - name: . - uid: adas_core.Domain.Utils name: Utils href: adas_core.Domain.Utils.html - uid: System.Object commentId: T:System.Object parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object name: object nameWithType: object fullName: object nameWithType.vb: Object fullName.vb: Object name.vb: Object - uid: System.Object.Equals(System.Object) commentId: M:System.Object.Equals(System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) name: Equals(object) nameWithType: object.Equals(object) fullName: object.Equals(object) nameWithType.vb: Object.Equals(Object) fullName.vb: Object.Equals(Object) name.vb: Equals(Object) spec.csharp: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.Equals(System.Object,System.Object) commentId: M:System.Object.Equals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) name: Equals(object, object) nameWithType: object.Equals(object, object) fullName: object.Equals(object, object) nameWithType.vb: Object.Equals(Object, Object) fullName.vb: Object.Equals(Object, Object) name.vb: Equals(Object, Object) spec.csharp: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.GetHashCode commentId: M:System.Object.GetHashCode parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode name: GetHashCode() nameWithType: object.GetHashCode() fullName: object.GetHashCode() nameWithType.vb: Object.GetHashCode() fullName.vb: Object.GetHashCode() spec.csharp: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) spec.vb: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) - uid: System.Object.GetType commentId: M:System.Object.GetType parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype name: GetType() nameWithType: object.GetType() fullName: object.GetType() nameWithType.vb: Object.GetType() fullName.vb: Object.GetType() spec.csharp: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) spec.vb: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) - uid: System.Object.MemberwiseClone commentId: M:System.Object.MemberwiseClone parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone name: MemberwiseClone() nameWithType: object.MemberwiseClone() fullName: object.MemberwiseClone() nameWithType.vb: Object.MemberwiseClone() fullName.vb: Object.MemberwiseClone() spec.csharp: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) spec.vb: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) - uid: System.Object.ReferenceEquals(System.Object,System.Object) commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals name: ReferenceEquals(object, object) nameWithType: object.ReferenceEquals(object, object) fullName: object.ReferenceEquals(object, object) nameWithType.vb: Object.ReferenceEquals(Object, Object) fullName.vb: Object.ReferenceEquals(Object, Object) name.vb: ReferenceEquals(Object, Object) spec.csharp: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.ToString commentId: M:System.Object.ToString parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring name: ToString() nameWithType: object.ToString() fullName: object.ToString() nameWithType.vb: Object.ToString() fullName.vb: Object.ToString() spec.csharp: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) spec.vb: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) - uid: System commentId: N:System isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System nameWithType: System fullName: System - uid: adas_core.Domain.Utils.DictionaryEx.GetValue* commentId: Overload:adas_core.Domain.Utils.DictionaryEx.GetValue href: adas_core.Domain.Utils.DictionaryEx.html#adas_core_Domain_Utils_DictionaryEx_GetValue__2_System_Collections_Generic_IDictionary___0___1____0___1_ name: GetValue nameWithType: DictionaryEx.GetValue fullName: adas_core.Domain.Utils.DictionaryEx.GetValue - uid: System.Collections.Generic.IDictionary{{TK},{TV}} commentId: T:System.Collections.Generic.IDictionary{``0,``1} parent: System.Collections.Generic definition: System.Collections.Generic.IDictionary`2 href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 name: IDictionary nameWithType: IDictionary fullName: System.Collections.Generic.IDictionary nameWithType.vb: IDictionary(Of TK, TV) fullName.vb: System.Collections.Generic.IDictionary(Of TK, TV) name.vb: IDictionary(Of TK, TV) spec.csharp: - uid: System.Collections.Generic.IDictionary`2 name: IDictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 - name: < - name: TK - name: ',' - name: " " - name: TV - name: '>' spec.vb: - uid: System.Collections.Generic.IDictionary`2 name: IDictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 - name: ( - name: Of - name: " " - name: TK - name: ',' - name: " " - name: TV - name: ) - uid: '{TK}' commentId: '!:TK' definition: TK name: TK nameWithType: TK fullName: TK - uid: '{TV}' commentId: '!:TV' definition: TV name: TV nameWithType: TV fullName: TV - uid: System.Collections.Generic.IDictionary`2 commentId: T:System.Collections.Generic.IDictionary`2 isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 name: IDictionary nameWithType: IDictionary fullName: System.Collections.Generic.IDictionary nameWithType.vb: IDictionary(Of TKey, TValue) fullName.vb: System.Collections.Generic.IDictionary(Of TKey, TValue) name.vb: IDictionary(Of TKey, TValue) spec.csharp: - uid: System.Collections.Generic.IDictionary`2 name: IDictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 - name: < - name: TKey - name: ',' - name: " " - name: TValue - name: '>' spec.vb: - uid: System.Collections.Generic.IDictionary`2 name: IDictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 - name: ( - name: Of - name: " " - name: TKey - name: ',' - name: " " - name: TValue - name: ) - uid: System.Collections.Generic commentId: N:System.Collections.Generic isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System.Collections.Generic nameWithType: System.Collections.Generic fullName: System.Collections.Generic spec.csharp: - uid: System name: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system - name: . - uid: System.Collections name: Collections isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections - name: . - uid: System.Collections.Generic name: Generic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic spec.vb: - uid: System name: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system - name: . - uid: System.Collections name: Collections isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections - name: . - uid: System.Collections.Generic name: Generic isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic - uid: TK commentId: '!:TK' name: TK nameWithType: TK fullName: TK - uid: TV name: TV nameWithType: TV fullName: TV - uid: adas_core.Domain.Utils.DictionaryEx.ToListString* commentId: Overload:adas_core.Domain.Utils.DictionaryEx.ToListString href: adas_core.Domain.Utils.DictionaryEx.html#adas_core_Domain_Utils_DictionaryEx_ToListString__2_System_Collections_Generic_IDictionary___0___1__System_String_System_String_ name: ToListString nameWithType: DictionaryEx.ToListString fullName: adas_core.Domain.Utils.DictionaryEx.ToListString - uid: System.String commentId: T:System.String parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.string name: string nameWithType: string fullName: string nameWithType.vb: String fullName.vb: String name.vb: String - uid: adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn* commentId: Overload:adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn href: adas_core.Domain.Utils.DictionaryEx.html#adas_core_Domain_Utils_DictionaryEx_TryGetAndReturn__2_System_Collections_Generic_IDictionary___0___1____0_ name: TryGetAndReturn nameWithType: DictionaryEx.TryGetAndReturn fullName: adas_core.Domain.Utils.DictionaryEx.TryGetAndReturn - uid: System.Collections.Generic.IDictionary{{TKey},{TValue}} commentId: T:System.Collections.Generic.IDictionary{`0,`1} parent: System.Collections.Generic definition: System.Collections.Generic.IDictionary`2 href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 name: IDictionary nameWithType: IDictionary fullName: System.Collections.Generic.IDictionary nameWithType.vb: IDictionary(Of TKey, TValue) fullName.vb: System.Collections.Generic.IDictionary(Of TKey, TValue) name.vb: IDictionary(Of TKey, TValue) spec.csharp: - uid: System.Collections.Generic.IDictionary`2 name: IDictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 - name: < - name: TKey - name: ',' - name: " " - name: TValue - name: '>' spec.vb: - uid: System.Collections.Generic.IDictionary`2 name: IDictionary isExternal: true href: https://learn.microsoft.com/dotnet/api/system.collections.generic.idictionary-2 - name: ( - name: Of - name: " " - name: TKey - name: ',' - name: " " - name: TValue - name: ) - uid: '{TKey}' commentId: '!:TKey' definition: TKey name: TKey nameWithType: TKey fullName: TKey - uid: '{TValue}' commentId: '!:TValue' definition: TValue name: TValue nameWithType: TValue fullName: TValue - uid: TKey commentId: '!:TKey' name: TKey nameWithType: TKey fullName: TKey - uid: TValue commentId: '!:TValue' name: TValue nameWithType: TValue fullName: TValue