You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SorenSaket You are correct, however BiDirectionalDict requires a Key and Value, like normal dictionaries. Collection Literals do, at the time of writing, not support Dictionaries. See dotnet/csharplang#7822.
BiDirectionalDict doesn't support Collection Literals since theres no Add method.
To solve this either rename AddOrUpdate() to Add() or create a new Add() method.
To learn More:
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions
The text was updated successfully, but these errors were encountered: