Beispiel #1
0
 /** Adapter registration. */
 private static void register(SuperAdapter sa, string id)
 {
     if (SuperAdapter.adapters.ContainsKey(id))
     {
         SuperAdapter.adapters[id] = sa;
     }
     else
     {
         SuperAdapter.adapters.Add(id, sa);
     }
 }
Beispiel #2
0
 /** Constructor, does the adapter registration. */
 public SuperAdapter(string id)
 {
     this.getID = () => id;
     SuperAdapter.register(this, id);
 }