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
- SafeLocalMemHandle.cs
- TCPListener.cs
- ParentUndoUnit.cs
- GatewayDefinition.cs
- PseudoWebRequest.cs
- CryptoProvider.cs
- SpecialTypeDataContract.cs
- GridLength.cs
- OleDbError.cs
- FixedTextPointer.cs
- ObjectManager.cs
- SystemNetworkInterface.cs
- PropertyPathWorker.cs
- HttpCacheParams.cs
- Line.cs
- bidPrivateBase.cs
- ViewgenGatekeeper.cs
- MenuBase.cs
- DecoderFallback.cs
- FilterableAttribute.cs
- TableLayoutSettings.cs
- SqlDataReaderSmi.cs
- XmlElementCollection.cs
- ContentType.cs
- NestedContainer.cs
- TextDecorationUnitValidation.cs
- CustomPeerResolverService.cs
- Animatable.cs
- WindowsAltTab.cs
- BuildManager.cs
- ServiceCredentials.cs
- GridItemPattern.cs
- ResourceReader.cs
- PositiveTimeSpanValidator.cs
- SecurityPolicySection.cs
- Utils.cs
- autovalidator.cs
- LiteralLink.cs
- Exceptions.cs
- ClipboardProcessor.cs
- DbMetaDataCollectionNames.cs
- XmlExceptionHelper.cs
- SimpleTextLine.cs
- ErrorProvider.cs
- BrowserCapabilitiesFactoryBase.cs
- MetadataItemEmitter.cs
- Brush.cs
- DocumentAutomationPeer.cs
- Rect3D.cs
- RootBuilder.cs
- Type.cs
- PageParser.cs
- mda.cs
- COM2AboutBoxPropertyDescriptor.cs
- AllMembershipCondition.cs
- XmlTextReaderImplHelpers.cs
- DataGridTableCollection.cs
- TraceLevelStore.cs
- BamlWriter.cs
- SystemBrushes.cs
- XsltFunctions.cs
- PropertyGridEditorPart.cs
- COMException.cs
- DataRowComparer.cs
- MediaCommands.cs
- InvokePattern.cs
- HttpDebugHandler.cs
- SiteOfOriginPart.cs
- ProtocolInformationReader.cs
- ObjectDataSourceDesigner.cs
- FixedSOMTableRow.cs
- Timer.cs
- SafeHandle.cs
- CodeCastExpression.cs
- TextServicesDisplayAttribute.cs
- UserThread.cs
- Delegate.cs
- RequestDescription.cs
- XmlSchemaInferenceException.cs
- XmlTextReaderImpl.cs
- RegexTree.cs
- Part.cs
- ControlCachePolicy.cs
- TrackPoint.cs
- BindingValueChangedEventArgs.cs
- FormViewInsertEventArgs.cs
- FontUnit.cs
- PropertyEmitter.cs
- MsmqUri.cs
- ProxyHelper.cs
- AppearanceEditorPart.cs
- DetailsViewCommandEventArgs.cs
- Journaling.cs
- SqlCacheDependencySection.cs
- DataContractSet.cs
- PathSegment.cs
- CompilerErrorCollection.cs
- ProcessThreadCollection.cs
- RefreshPropertiesAttribute.cs
- DtdParser.cs