diff options
author | Ben Harris <ben@tilde.team> | 2020-05-16 22:08:40 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-16 22:08:40 -0400 |
commit | a1e1922e62419de75d2909dfae1ee7caa9ed487f (patch) | |
tree | 9198d3edbe1363df38fc03e30e4d247be9dd8e60 /IRCStates/Extensions.cs | |
parent | a03daca3d4f52af4fecbb263526a0d61d17776fd (diff) |
Add xmldocs, and handle null bytes
Diffstat (limited to 'IRCStates/Extensions.cs')
-rw-r--r-- | IRCStates/Extensions.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/IRCStates/Extensions.cs b/IRCStates/Extensions.cs index c807dbb..6cce3d4 100644 --- a/IRCStates/Extensions.cs +++ b/IRCStates/Extensions.cs @@ -5,6 +5,13 @@ namespace IRCStates { public static class Extensions { + /// <summary> + /// Update the dictionary with <see cref="other"/>'s keys and values + /// </summary> + /// <param name="dict"></param> + /// <param name="other"></param> + /// <typeparam name="TKey"></typeparam> + /// <typeparam name="TValue"></typeparam> public static void UpdateWith<TKey, TValue>(this Dictionary<TKey, TValue> dict, Dictionary<TKey, TValue> other) { if (dict == null || other == null || !other.Any()) return; |