{"id":15823720,"url":"https://github.com/stefh/portable.concurrentdictionary","last_synced_at":"2025-03-15T02:30:56.669Z","repository":{"id":65414103,"uuid":"57218369","full_name":"StefH/Portable.ConcurrentDictionary","owner":"StefH","description":"Portable, Silverlight 5.0 and Windows Phone Silverlight 8.0 \u0026 8.1 implementation of the ConcurrentDictionary","archived":false,"fork":false,"pushed_at":"2023-03-30T17:15:15.000Z","size":62,"stargazers_count":4,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T13:08:15.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-04-27T14:07:35.000Z","updated_at":"2021-11-07T17:11:09.000Z","dependencies_parsed_at":"2023-09-24T07:46:24.062Z","dependency_job_id":null,"html_url":"https://github.com/StefH/Portable.ConcurrentDictionary","commit_stats":{"total_commits":23,"total_committers":4,"mean_commits":5.75,"dds":0.3913043478260869,"last_synced_commit":"cc8149d2500b0a87a0639306736d8921bf6a5126"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FPortable.ConcurrentDictionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FPortable.ConcurrentDictionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FPortable.ConcurrentDictionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FPortable.ConcurrentDictionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefH","download_url":"https://codeload.github.com/StefH/Portable.ConcurrentDictionary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243674669,"owners_count":20329140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T08:22:17.633Z","updated_at":"2025-03-15T02:30:56.634Z","avatar_url":"https://github.com/StefH.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Portable.ConcurrentDictionary\r\n\r\n## Info\r\n| | |\r\n| --- | --- |\r\n| **Build AppVeyor** | [![Build status](https://ci.appveyor.com/api/projects/status/4ujh5c5qvabw5i5p?svg=true)](https://ci.appveyor.com/project/StefH/portable-concurrentdictionary) |\r\n| **Portable.ConcurrentDictionary** | [![NuGet Badge Portable.ConcurrentDictionary](https://buildstats.info/nuget/Portable.ConcurrentDictionary)](https://www.nuget.org/packages/Portable.ConcurrentDictionary) |\r\n\r\n## Framework support\r\n\r\nThis is a backport from System.Collections.Concurrent.ConcurrentDictionary defined in .NET Core and this library helps supporting frameworks:\r\n - .NET Standard 1.0\r\n - .NET 2.0\r\n - .NET 3.5\r\n - Silverlight 5.0\r\n - Windows Phone Silverlight 8.0\r\n - Windows Phone Silverlight 8.1\r\n - Windows Phone 8.1\r\n - Windows 8\r\n\r\n## ConcurrentDictionary\r\n\r\nConcurrentDictionary is quite usuful dictionary with a thread-safe feature.\r\n\r\n### Examples\r\n\r\n```csharp\r\n// New instance. (from http://www.dotnetperls.com/concurrentdictionary)\r\nvar con = new ConcurrentDictionary\u003cstring, int\u003e();\r\ncon.TryAdd(\"cat\", 1);\r\ncon.TryAdd(\"dog\", 2);\r\n\r\n// Try to update if value is 4 (this fails).\r\ncon.TryUpdate(\"cat\", 200, 4);\r\n\r\n// Try to update if value is 1 (this works).\r\ncon.TryUpdate(\"cat\", 100, 1);\r\n\r\n// Write new value.\r\nConsole.WriteLine(con[\"cat\"]);\r\n```\r\n\r\nThis project is based on https://github.com/SaladLab/NetLegacySupport","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fportable.concurrentdictionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefh%2Fportable.concurrentdictionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Fportable.concurrentdictionary/lists"}