// Token: 0x060054A2 RID: 21666 RVA: 0x00176EC4 File Offset: 0x001750C4 private static void Unregister(string groupName, RadioButton radioButton) { if (RadioButton._groupNameToElements == null) { return; } Hashtable groupNameToElements = RadioButton._groupNameToElements; lock (groupNameToElements) { ArrayList arrayList = (ArrayList)RadioButton._groupNameToElements[groupName]; if (arrayList != null) { RadioButton.PurgeDead(arrayList, radioButton); if (arrayList.Count == 0) { RadioButton._groupNameToElements.Remove(groupName); } } } RadioButton._currentlyRegisteredGroupName.SetValue(radioButton, null); }
// Token: 0x060054A1 RID: 21665 RVA: 0x00176E30 File Offset: 0x00175030 private static void Register(string groupName, RadioButton radioButton) { if (RadioButton._groupNameToElements == null) { RadioButton._groupNameToElements = new Hashtable(1); } Hashtable groupNameToElements = RadioButton._groupNameToElements; lock (groupNameToElements) { ArrayList arrayList = (ArrayList)RadioButton._groupNameToElements[groupName]; if (arrayList == null) { arrayList = new ArrayList(1); RadioButton._groupNameToElements[groupName] = arrayList; } else { RadioButton.PurgeDead(arrayList, null); } arrayList.Add(new WeakReference(radioButton)); } RadioButton._currentlyRegisteredGroupName.SetValue(radioButton, groupName); }