.ToDictionary should return a Dictionary<TKey, TValue>
See original GitHub issuehttps://github.com/kutyel/linq.ts/pull/136
This is not allowing me to use the following syntax:
const questions = new List<PCSQuestion>([]);
const questionDic = questions.ToDictionary((x) => x.id);
const questionDicProperty = questionDic[''].something;
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:17 (6 by maintainers)
Top Results From Across the Web
ToDictionary Method in C# with Examples - Dot Net Tutorials
Returns : It returns a System.Collections.Generic.Dictionary<TKey,TValue> collection that contains keys and values. Exceptions: This method throws the following ...
Read more >Enumerable.ToDictionary Method (System.Linq)
Returns. A Dictionary<TKey,TValue> that contains keys and values. The values within each group are in the same order as in source .
Read more >net - How to convert object to Dictionary<TKey, TValue> in C
The above answers are all cool. I found it easy to json serialize the object and deserialize as a dictionary. var json =...
Read more >ToDictionary overload for IEnumerable<KeyValuePair<IKey ...
Often it would be useful to be able to create a Dictionary from an IEnumerable >. With that, it would be easier to...
Read more >C# - Dictionary<TKey, TValue> - TutorialsTeacher
Dictionary <TKey, TValue> stores key-value pairs. · Comes under System. · Implements IDictionary<TKey, TValue> interface. · Keys must be unique and cannot be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A sample implementation is
As I said, please provide a unit test with a complete example with types and the input and output that you expect and that way we will know if this is something that needs to be fixed 😅