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