public static void UnRegister(RegistrationInfo regInfo) { if (RegistrationList.ContainsKey(regInfo.GetHashCode())) { RegistrationList.Remove(regInfo.GetHashCode()); } }
public static void Register(RegistrationInfo regInfo) { if (!RegistrationList.ContainsKey(regInfo.GetHashCode())) { RegistrationList.Add(regInfo.GetHashCode(), regInfo); } }