MondoCore.Collections 2.1.1

dotnet add package MondoCore.Collections --version 2.1.1
                    
NuGet\Install-Package MondoCore.Collections -Version 2.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MondoCore.Collections" Version="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MondoCore.Collections" Version="2.1.1" />
                    
Directory.Packages.props
<PackageReference Include="MondoCore.Collections" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MondoCore.Collections --version 2.1.1
                    
#r "nuget: MondoCore.Collections, 2.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=MondoCore.Collections&version=2.1.1
                    
Install MondoCore.Collections as a Cake Addin
#tool nuget:?package=MondoCore.Collections&version=2.1.1
                    
Install MondoCore.Collections as a Cake Tool

MondoCore.Collections

A set of collections and collection related extensions

Table of Contents

<a name="extensions"></a>

Extensions

<a name="object_extensions"></a>

Object Extensions


<a name="todictionary"></a>

<small>IDictionary<string, object></small> ToDictionary<small>(this object obj)</small>

Converts a POCO, anonymous object or a different kind of dictionary into a string/object dictionary


<a name="tostringdictionary"></a>

<small>IDictionary<string, string></small> ToStringDictionary<small>(this object obj)</small>

Converts a POCO, anonymous object or a different kind of dictionary into a string/string dictionary


<a name="torodictionary"></a>

<small>IReadOnlyDictionary<string, object></small> ToReadOnlyDictionary<small>(this object obj)</small>

Converts a POCO, anonymous object or a different kind of dictionary into a string/object readonly dictionary


<a name="torostringdictionary"></a>

<small>IReadOnlyDictionary<string, string></small> ToReadOnlyStringDictionary<small>(this object obj)</small>

Converts a POCO, anonymous object or a different kind of dictionary into a string/string readonly dictionary


<a name="getproperties"></a>

<small>IEnumerable<(string Name, object Value)></small> GetProperties<small>(this object obj)</small>

Retrieves the properties and their values from a POCO or anonymous object

<a name="dictionary_extensions"></a>

Dictionary Extensions


<a name="append"></a>

<small>IDictionary<K, V>?</small> Append<K, V><small>(this IDictionary<K, V> dict1, IDictionary<K, V>? dict2)</small>

Adds all the keyvalue pairs from the second dictionary into the first (the first dictionary will be returned)


<a name="appendro"></a>

<small>IDictionary<K, V>?</small> Append<K, V><small>(this IDictionary<K, V> dict1, IReadOnlyDictionary<K, V>? dict2)</small>

Adds all the keyvalue pairs from the second dictionary into the first (the first dictionary will be returned)


<a name="appendstrings"></a>

<small>IDictionary<string, string>?</small> AppendStrings<small>(this IDictionary<string, string> dict1, IReadOnlyDictionary<string, object>? dict2, bool childrenAsJson = false)</small>

Adds all the keyvalue pairs from the second dictionary into the first as strings. If the value being added is an object then it will be either added as serialized json or dotted values (e.g. Address.ZipCode)


<a name="merge"></a>

<small>IDictionary<K, V></small> Merge<K, V><small>(this IDictionary<K, V> dict1, IDictionary<K, V> dict2)</small>

Adds all the keyvalue pairs from the second dictionary into the first (or returns the second dictionary if the first is empty)

<a name="collections"></a>

Collections


<a name="concurrentlist"></a>

class ConcurrentList

An implementation of IList that is thread-safe


<a name="concurrentkeyedqueue"></a>

class ConcurrentKeyedQueue

A thread safe queue that can also be accessed via a key (like a dictionary)

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on MondoCore.Collections:

Package Downloads
MondoCore.Common

Common classes used by other MondoCore libraries

MondoCore.Log

Modern logging library

MondoCore.Data

Interfaces and extensions for repositories (databases and collections)

MondoCore.MongoDB

Implementation of MondoCode.Data interfaces for MongoDB

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.1 261 11/30/2024
2.1.0 304 10/22/2024
2.0.0 174 10/9/2024