Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / EventPrivateKey.cs / 1 / 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
- RegistryKey.cs
- formatter.cs
- XmlHierarchicalEnumerable.cs
- SettingsPropertyValue.cs
- DesignerSerializationManager.cs
- DataSpaceManager.cs
- TaskExtensions.cs
- GridErrorDlg.cs
- EnumerationRangeValidationUtil.cs
- CustomTypeDescriptor.cs
- EntityViewGenerationAttribute.cs
- SecurityUniqueId.cs
- TaskForm.cs
- LoginView.cs
- CssStyleCollection.cs
- ProjectionPruner.cs
- QilGeneratorEnv.cs
- DataSourceGeneratorException.cs
- DocumentSequenceHighlightLayer.cs
- IgnoreSectionHandler.cs
- TypeToTreeConverter.cs
- InvalidPropValue.cs
- SafeNativeMemoryHandle.cs
- ImportOptions.cs
- SequentialActivityDesigner.cs
- SSmlParser.cs
- CompilationUtil.cs
- NumberFunctions.cs
- HistoryEventArgs.cs
- DataViewListener.cs
- TimeSpanOrInfiniteConverter.cs
- ListItem.cs
- TypeBrowser.xaml.cs
- RemotingServices.cs
- ping.cs
- RedBlackList.cs
- AndCondition.cs
- EdmValidator.cs
- TypeSystem.cs
- DataListItem.cs
- ResourceDictionaryCollection.cs
- DynamicVirtualDiscoSearcher.cs
- SqlPersonalizationProvider.cs
- DataGridViewRowPostPaintEventArgs.cs
- HttpRequestCacheValidator.cs
- MoveSizeWinEventHandler.cs
- XmlExtensionFunction.cs
- CodeCommentStatement.cs
- IERequestCache.cs
- GeneralTransform3D.cs
- EditorZoneDesigner.cs
- UniqueEventHelper.cs
- XPathNodeHelper.cs
- StorageFunctionMapping.cs
- SiteMapProvider.cs
- AdornerHitTestResult.cs
- WinCategoryAttribute.cs
- WebPartsPersonalizationAuthorization.cs
- ImageInfo.cs
- IssuedTokensHeader.cs
- ParserContext.cs
- BitmapFrame.cs
- BatchWriter.cs
- MessageSmuggler.cs
- ValidatingReaderNodeData.cs
- SettingsAttributeDictionary.cs
- EventLogPermissionAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- NoneExcludedImageIndexConverter.cs
- ValidationRule.cs
- PropertyHelper.cs
- DbXmlEnabledProviderManifest.cs
- WindowsEditBox.cs
- PieceNameHelper.cs
- CodeGeneratorOptions.cs
- UpdateRecord.cs
- NumericUpDownAccelerationCollection.cs
- QilLoop.cs
- XamlValidatingReader.cs
- RadioButtonRenderer.cs
- NetPeerTcpBindingCollectionElement.cs
- AnnotationObservableCollection.cs
- FlowDocumentPage.cs
- baseaxisquery.cs
- ImageMetadata.cs
- ToolStripLocationCancelEventArgs.cs
- ColorTranslator.cs
- FormatterConverter.cs
- FileDialogPermission.cs
- XsdCachingReader.cs
- EndpointIdentity.cs
- RegexCompilationInfo.cs
- RuntimeConfigurationRecord.cs
- PropertyItemInternal.cs
- DiscoveryReferences.cs
- ColorDialog.cs
- SessionConnectionReader.cs
- TimeSpanMinutesConverter.cs
- RemotingSurrogateSelector.cs
- CodeDefaultValueExpression.cs