| File: System\Windows\EventPrivateKey.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\PresentationCore.csproj (PresentationCore) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows { /// <summary> /// This class is meant to provide identification /// for Clr events whose handlers are stored /// into EventHandlersStore /// </summary> /// <remarks> /// This type has been specifically added so that it /// is easy to enforce via fxcop rules or such that /// event keys of this type must be private static /// fields on the declaring class. /// </remarks> public class EventPrivateKey { internal int GlobalIndex { get; } /// <summary> /// Constructor for EventPrivateKey /// </summary> public EventPrivateKey() { GlobalIndex = GlobalEventManager.GetNextAvailableGlobalIndex(); } } }