Advertisement
KidaCoding

Untitled

Jan 10th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | Source Code | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace DeathWish
  8. {
  9.     internal static class Redll
  10.     {
  11.         public static void Add<T, T2>(this IDictionary<T, T2> dict, T key, T2 value)
  12.         {
  13.             if (dict == null) throw new ArgumentNullException(nameof(dict));
  14.             dict[key] = value;
  15.         }
  16.         public static void Remove<T, T2>(this IDictionary<T, T2> dict, T key)
  17.         {
  18.             if (dict == null) throw new ArgumentNullException(nameof(dict));
  19.             dict.Remove(key);
  20.  
  21.         }
  22.     }
  23. }
Tags: MS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement