Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / EventPrivateKey.cs / 1305600 / EventPrivateKey.cs
using System;
namespace System.Windows
{
///
/// This class is meant to provide identification
/// for Clr events whose handlers are stored
/// into EventHandlersStore
///
///
/// 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.
///
public class EventPrivateKey
{
///
/// Constructor for EventPrivateKey
///
public EventPrivateKey()
{
_globalIndex = GlobalEventManager.GetNextAvailableGlobalIndex(this);
}
internal int GlobalIndex
{
get { return _globalIndex; }
}
private int _globalIndex;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
namespace System.Windows
{
///
/// This class is meant to provide identification
/// for Clr events whose handlers are stored
/// into EventHandlersStore
///
///
/// 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.
///
public class EventPrivateKey
{
///
/// Constructor for EventPrivateKey
///
public EventPrivateKey()
{
_globalIndex = GlobalEventManager.GetNextAvailableGlobalIndex(this);
}
internal int GlobalIndex
{
get { return _globalIndex; }
}
private int _globalIndex;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FieldTemplateUserControl.cs
- Transform3DGroup.cs
- RightsManagementUser.cs
- SocketCache.cs
- DataGridTextColumn.cs
- SimpleRecyclingCache.cs
- VisualBrush.cs
- ProxyAttribute.cs
- AppDomainShutdownMonitor.cs
- CaseInsensitiveHashCodeProvider.cs
- MemberRestriction.cs
- ButtonField.cs
- Calendar.cs
- TableHeaderCell.cs
- SimpleHandlerFactory.cs
- DefaultProxySection.cs
- Claim.cs
- SspiSecurityToken.cs
- DataControlPagerLinkButton.cs
- AssemblyBuilder.cs
- WebBrowserNavigatedEventHandler.cs
- UserControl.cs
- WebUtil.cs
- NextPreviousPagerField.cs
- SecurityHeaderTokenResolver.cs
- BlurBitmapEffect.cs
- RawUIStateInputReport.cs
- CodePageUtils.cs
- ExtractedStateEntry.cs
- NativeRecognizer.cs
- VerticalAlignConverter.cs
- InternalRelationshipCollection.cs
- CodeTypeReferenceExpression.cs
- WebBrowserBase.cs
- FixedSOMTextRun.cs
- NamedPipeProcessProtocolHandler.cs
- PerformanceCounterPermissionEntryCollection.cs
- DbDeleteCommandTree.cs
- COM2Properties.cs
- ContextStaticAttribute.cs
- ByteRangeDownloader.cs
- ColorBlend.cs
- DataGridViewCellValidatingEventArgs.cs
- NativeMethods.cs
- MissingFieldException.cs
- WS2007FederationHttpBindingCollectionElement.cs
- RsaSecurityTokenAuthenticator.cs
- SystemFonts.cs
- WebPartExportVerb.cs
- CreateUserWizard.cs
- ListViewItemSelectionChangedEvent.cs
- ResponseBodyWriter.cs
- RecommendedAsConfigurableAttribute.cs
- XPathNavigator.cs
- InternalTypeHelper.cs
- SqlProfileProvider.cs
- MediaPlayer.cs
- XmlConvert.cs
- InstanceValue.cs
- SqlProcedureAttribute.cs
- VarInfo.cs
- InstanceNotReadyException.cs
- PropertyPathWorker.cs
- ServiceHandle.cs
- BindingBase.cs
- WindowsToolbarItemAsMenuItem.cs
- AstNode.cs
- UpdatePanelControlTrigger.cs
- SiteMapSection.cs
- XPathSelfQuery.cs
- FileResponseElement.cs
- XmlSchemaExporter.cs
- ActivityBindForm.cs
- ScalarConstant.cs
- UpdatePanelTrigger.cs
- WarningException.cs
- KnownBoxes.cs
- HttpDictionary.cs
- ECDiffieHellmanCngPublicKey.cs
- ServiceBusyException.cs
- XmlElementList.cs
- IMembershipProvider.cs
- SingleObjectCollection.cs
- LogAppendAsyncResult.cs
- TableRowCollection.cs
- HttpServerUtilityWrapper.cs
- BookmarkNameHelper.cs
- SchemaComplexType.cs
- controlskin.cs
- HebrewNumber.cs
- PersonalizationDictionary.cs
- ListDataBindEventArgs.cs
- UITypeEditors.cs
- RelatedView.cs
- XsltQilFactory.cs
- SystemInformation.cs
- KoreanLunisolarCalendar.cs
- EntityCommand.cs
- CurrentChangedEventManager.cs
- ReferentialConstraint.cs