2 writes to uniqueID
System.Windows.Forms (2)
winforms\Managed\System\WinForms\MenuItem.cs (2)
918uniqueID = (uint)Interlocked.Increment(ref nextUniqueID); 982this.uniqueID = 0;
6 references to uniqueID
System.Windows.Forms (6)
winforms\Managed\System\WinForms\MenuItem.cs (6)
916if (uniqueID == 0) { 919Debug.Assert(uniqueID >= firstUniqueID); // ...check for ID range exhaustion (unlikely!) 923allCreatedMenuItems.Add(uniqueID, new WeakReference(this)); 940info.dwItemData = (IntPtr) unchecked((int) uniqueID); 980allCreatedMenuItems.Remove(uniqueID); 1057MsaaMenuInfoWithId msaaMenuInfoStruct = new MsaaMenuInfoWithId(data.caption, uniqueID);