Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- BitmapPalettes.cs
- BinaryEditor.cs
- ResourcePart.cs
- RequestQueryProcessor.cs
- IgnoreFlushAndCloseStream.cs
- IdnMapping.cs
- CodeNamespaceImportCollection.cs
- DateTimeValueSerializer.cs
- IndentedTextWriter.cs
- RestHandlerFactory.cs
- Literal.cs
- NotImplementedException.cs
- SizeKeyFrameCollection.cs
- AsyncCompletedEventArgs.cs
- XmlTextReader.cs
- CodeDomLocalizationProvider.cs
- Zone.cs
- KeyboardDevice.cs
- DataGridViewCellValidatingEventArgs.cs
- IPPacketInformation.cs
- PriorityRange.cs
- EndOfStreamException.cs
- XPathDocument.cs
- SmiRecordBuffer.cs
- CacheDependency.cs
- listitem.cs
- ExtensionWindow.cs
- mactripleDES.cs
- SimpleWebHandlerParser.cs
- SqlDataSourceCustomCommandPanel.cs
- CacheForPrimitiveTypes.cs
- SpecularMaterial.cs
- InfiniteIntConverter.cs
- NotificationContext.cs
- UnsafeNativeMethodsPenimc.cs
- PopupRootAutomationPeer.cs
- AppDomain.cs
- PreloadHost.cs
- UserControl.cs
- CommonProperties.cs
- ListMarkerLine.cs
- DeviceSpecificChoice.cs
- XPathScanner.cs
- Privilege.cs
- HttpException.cs
- NameHandler.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ApplicationSettingsBase.cs
- SmiEventSink_Default.cs
- HtmlInputSubmit.cs
- AuthenticationModulesSection.cs
- GifBitmapDecoder.cs
- UICuesEvent.cs
- WizardSideBarListControlItem.cs
- BrushMappingModeValidation.cs
- QuaternionAnimationUsingKeyFrames.cs
- ControlPaint.cs
- PaperSize.cs
- QuadraticBezierSegment.cs
- DataGridViewToolTip.cs
- PropertyFilterAttribute.cs
- ArrayWithOffset.cs
- ColorAnimation.cs
- XmlNodeReader.cs
- SmtpCommands.cs
- PathSegmentCollection.cs
- Misc.cs
- CommandCollectionEditor.cs
- CompensationDesigner.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- PixelFormat.cs
- ScrollableControl.cs
- StartUpEventArgs.cs
- CounterCreationDataCollection.cs
- BufferModeSettings.cs
- OuterGlowBitmapEffect.cs
- SiteMapProvider.cs
- StateValidator.cs
- EncoderExceptionFallback.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- FtpRequestCacheValidator.cs
- FrameworkElementAutomationPeer.cs
- ImageBrush.cs
- WebPartMenu.cs
- TemplateXamlParser.cs
- ButtonAutomationPeer.cs
- Condition.cs
- TextLineResult.cs
- GC.cs
- CatalogPartChrome.cs
- MemberRelationshipService.cs
- SqlCaseSimplifier.cs
- ListMarkerSourceInfo.cs
- PathGeometry.cs
- ExceptionUtil.cs
- SoapElementAttribute.cs
- StateItem.cs
- OneOfElement.cs
- DataGridViewRowCancelEventArgs.cs
- XmlNamespaceMappingCollection.cs