XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Added a deconstructor for KeyValuePairs with comment #37

Open Eregerog opened 5 years ago

Eregerog commented 5 years ago

Implemented a nice deconstructor extension method for KeyValuePairs, which makes the following code possible:

foreach(var (key, value) in myDict) // ...

This is in a preprocessor directive, since the feature has no use before c#7. It would still compile, but probably just confuse people.

TODO for XDracam: