JasonBock / SpackleNet

Spackle is a project that contains a number of helper methods I've used to supplement the core classes in .NET.
MIT License
14 stars 1 forks source link

Add `AddPairs` Extension Method for `IDictionary<,>` #39

Closed JasonBock closed 1 year ago

JasonBock commented 1 year ago

It would be nice to have this, so you can add the contents of one dictionary to another. Underneath the scenes, it'll just foreach over the pairs, and call Add() (or [key] = value), and whatever exceptions occur from that, will happen.