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
- HelpProvider.cs
- TargetControlTypeCache.cs
- xmlformatgeneratorstatics.cs
- PreProcessInputEventArgs.cs
- Metafile.cs
- XmlDocumentFieldSchema.cs
- XmlStreamStore.cs
- Deflater.cs
- HtmlHistory.cs
- WindowsRegion.cs
- WhitespaceSignificantCollectionAttribute.cs
- InnerItemCollectionView.cs
- RSAPKCS1SignatureFormatter.cs
- WindowsRegion.cs
- SecurityContextKeyIdentifierClause.cs
- CompressionTransform.cs
- IsolatedStorageFilePermission.cs
- filewebrequest.cs
- WebEncodingValidator.cs
- AnnouncementInnerClientCD1.cs
- ActivityValidator.cs
- ThrowHelper.cs
- SyndicationSerializer.cs
- WebPartEditVerb.cs
- DbLambda.cs
- XmlSchemaDocumentation.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- OpenFileDialog.cs
- WhitespaceRuleLookup.cs
- WindowsTitleBar.cs
- AuthenticationSection.cs
- TreeBuilder.cs
- StylusTip.cs
- HtmlElementCollection.cs
- ColumnBinding.cs
- AxisAngleRotation3D.cs
- MenuItemBinding.cs
- InternalCache.cs
- RuleEngine.cs
- ScaleTransform3D.cs
- CodeDomSerializerBase.cs
- SystemWebCachingSectionGroup.cs
- ItemMap.cs
- XmlEntityReference.cs
- ObjectConverter.cs
- WindowsTooltip.cs
- ComUdtElement.cs
- BaseCollection.cs
- Quaternion.cs
- EtwTrackingBehavior.cs
- Material.cs
- ReaderContextStackData.cs
- StatusBar.cs
- ConnectionPointCookie.cs
- AssertValidation.cs
- TypeGeneratedEventArgs.cs
- CryptoHelper.cs
- ContentType.cs
- PackWebResponse.cs
- _emptywebproxy.cs
- FileAuthorizationModule.cs
- PaintEvent.cs
- HMACSHA1.cs
- WebPartUserCapability.cs
- SystemSounds.cs
- DateRangeEvent.cs
- Content.cs
- BufferBuilder.cs
- EncoderParameters.cs
- DataTransferEventArgs.cs
- DataRow.cs
- FixedSOMElement.cs
- CollectionViewGroupRoot.cs
- ConcurrencyBehavior.cs
- SafeNativeMethods.cs
- InstanceLockQueryResult.cs
- WindowsTreeView.cs
- InvariantComparer.cs
- DefaultWorkflowSchedulerService.cs
- SqlCommandBuilder.cs
- ToolStripMenuItemDesigner.cs
- PathParser.cs
- PersonalizationAdministration.cs
- DispatcherOperation.cs
- MemoryMappedFileSecurity.cs
- TextEffectResolver.cs
- DataBinder.cs
- ProfileSettings.cs
- ACL.cs
- QueryContinueDragEvent.cs
- securitycriticaldata.cs
- HttpResponse.cs
- SolidBrush.cs
- WebPartUtil.cs
- XmlSerializerAssemblyAttribute.cs
- Int64KeyFrameCollection.cs
- Rectangle.cs
- WebSysDefaultValueAttribute.cs
- BinaryMessageEncodingBindingElement.cs
- X509Certificate2.cs