{"id":20762546,"url":"https://github.com/twentyfourminutes/bidirectionaldict","last_synced_at":"2025-04-30T07:08:50.979Z","repository":{"id":116536445,"uuid":"231823592","full_name":"TwentyFourMinutes/BidirectionalDict","owner":"TwentyFourMinutes","description":"Provides implementations of bidirectional dictionaries for C#.","archived":false,"fork":false,"pushed_at":"2021-01-29T07:29:21.000Z","size":76,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T07:08:42.186Z","etag":null,"topics":["bidirectional","bidirectional-dictionaries","bidirectional-dictionary","collections","csharp","csharp8","dictionary","dotnet","dotnet-core","dotnetstandard","two-way"],"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/TwentyFourMinutes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"TwentyFourMinutes","custom":"https://www.paypal.me/24minutes"}},"created_at":"2020-01-04T20:24:27.000Z","updated_at":"2024-02-28T13:54:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"571f9eb7-32b2-4e9a-88e3-5ec431e5312a","html_url":"https://github.com/TwentyFourMinutes/BidirectionalDict","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwentyFourMinutes%2FBidirectionalDict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwentyFourMinutes%2FBidirectionalDict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwentyFourMinutes%2FBidirectionalDict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwentyFourMinutes%2FBidirectionalDict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TwentyFourMinutes","download_url":"https://codeload.github.com/TwentyFourMinutes/BidirectionalDict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658207,"owners_count":21622820,"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":["bidirectional","bidirectional-dictionaries","bidirectional-dictionary","collections","csharp","csharp8","dictionary","dotnet","dotnet-core","dotnetstandard","two-way"],"created_at":"2024-11-17T10:36:18.006Z","updated_at":"2025-04-30T07:08:50.974Z","avatar_url":"https://github.com/TwentyFourMinutes.png","language":"C#","funding_links":["https://github.com/sponsors/TwentyFourMinutes","https://www.paypal.me/24minutes"],"categories":[],"sub_categories":[],"readme":"# BidirectionalDict\n\n![Nuget](https://img.shields.io/nuget/dt/BidirectionalDict) \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues-raw/TwentyFourMinutes/BidirectionalDict?style=flat-square\"\u003e \u003cimg alt=\"GitHub release (latest by date including pre-releases)\" src=\"https://img.shields.io/github/v/release/TwentyFourMinutes/BidirectionalDict?include_prereleases\u0026style=flat-square\"\u003e ![GitHub](https://img.shields.io/github/license/TwentyFourMinutes/BidirectionalDict?style=flat-square)\n\nProvides simple implementations of bidirectional Dictionaries for C#. BidirectionalDict targets \u003c/br\u003e\n`.Net Standard 2.1`, `.Net Core 3.1` and `.Net Framework 4.8` so it's available to you on all platforms.\n\n## About\n\nThis package brings a basic implementation of a bidirectional Dictionary with it. A bidirectional Dictionary stores two values which are both unique and can each value can be queried by its related partner. \n\n## Installation\n\nYou can either get this package by downloading it from the NuGet Package Manager built in Visual Studio, in the [releases](https://github.com/TwentyFourMinutes/BidirectionalDict/releases) tab or from the official [nuget.org](https://www.nuget.org/packages/BidirectionalDict) website. \n\nAlso you can install it via the **P**ackage **M**anager **C**onsole:\n\n```\nInstall-Package BidirectionalDict\n```\n\n### Basic example\n\n```c#\nBiDictionary\u003cint, string\u003e dict = new BiDictionary\u003cint, string\u003e();\n\ndict.TryAdd(0, \"Hello World!\");\n\ndict.TryGet(0, out string val1);\nConsole.WriteLine(val1); // HelloWorld!\n\ndict.TryGet(\"Hello World!\", out int val2);\nConsole.WriteLine(val2); // 0\n```\n\n\n## Features\n\n- C# 8.0 ready\n- build upon performance\n- compatible with Newtonsoft.JSON\n- iterable by foreach\n- read-only implementation\n- concurrent implementation\n\n## Notes\n\nIf you feel like something is not working as intended or you are experiencing issues, feel free to create an issue. Also for feature requests just create an issue. For further information feel free to send me a [mail](mailto:office@twenty-four.dev) to `office@twenty-four.dev` or message me on Discord `24_minutes#7496`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwentyfourminutes%2Fbidirectionaldict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwentyfourminutes%2Fbidirectionaldict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwentyfourminutes%2Fbidirectionaldict/lists"}