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
- EntityChangedParams.cs
- DynamicPropertyHolder.cs
- LightweightCodeGenerator.cs
- TogglePatternIdentifiers.cs
- WebConvert.cs
- CollectionBase.cs
- GridViewColumnHeader.cs
- _AutoWebProxyScriptEngine.cs
- VoiceChangeEventArgs.cs
- SortableBindingList.cs
- QilLiteral.cs
- SimpleApplicationHost.cs
- HttpHandlerActionCollection.cs
- DataListItem.cs
- ObjectDataSourceDisposingEventArgs.cs
- Privilege.cs
- CalloutQueueItem.cs
- MaterializeFromAtom.cs
- TextElementEnumerator.cs
- DataKey.cs
- OracleDataReader.cs
- WebPartZone.cs
- CodeMemberMethod.cs
- FileCodeGroup.cs
- CheckBox.cs
- SqlDataSourceStatusEventArgs.cs
- DataFormats.cs
- Metafile.cs
- XmlImplementation.cs
- WindowsPrincipal.cs
- StringAnimationUsingKeyFrames.cs
- SafeRightsManagementPubHandle.cs
- RSAOAEPKeyExchangeFormatter.cs
- PageSetupDialog.cs
- SerialPinChanges.cs
- CodeCommentStatement.cs
- HiddenField.cs
- TextEditorCharacters.cs
- ContentHostHelper.cs
- EventProviderClassic.cs
- X509ChainElement.cs
- GuidelineCollection.cs
- XmlQueryType.cs
- FormView.cs
- TemplateField.cs
- DbDataAdapter.cs
- BufferedWebEventProvider.cs
- ObjectTypeMapping.cs
- TemplateParser.cs
- ModelUtilities.cs
- XmlNodeList.cs
- QilBinary.cs
- XmlSchemaExternal.cs
- DataGridItemAutomationPeer.cs
- StaticResourceExtension.cs
- HwndTarget.cs
- regiisutil.cs
- OptimisticConcurrencyException.cs
- TreeViewEvent.cs
- TextureBrush.cs
- ConnectionConsumerAttribute.cs
- EndOfStreamException.cs
- ApplicationException.cs
- ErrorHandlerModule.cs
- PropertyGridEditorPart.cs
- TransformerInfoCollection.cs
- RemotingHelper.cs
- DocumentViewerAutomationPeer.cs
- QueryOpcode.cs
- ReadOnlyCollection.cs
- BamlBinaryWriter.cs
- ScriptingSectionGroup.cs
- CancelEventArgs.cs
- PointConverter.cs
- login.cs
- BinaryEditor.cs
- TraceHandlerErrorFormatter.cs
- ConfigViewGenerator.cs
- SetterBase.cs
- InstanceOwner.cs
- ChangePasswordDesigner.cs
- ArgumentValueSerializer.cs
- DataGridViewRowCancelEventArgs.cs
- SHA256.cs
- ProgressPage.cs
- DataGridPagerStyle.cs
- ToolStripDesignerAvailabilityAttribute.cs
- PermissionToken.cs
- MenuEventArgs.cs
- ExpressionNode.cs
- DesignerActionPropertyItem.cs
- CommonRemoteMemoryBlock.cs
- DateTimeFormatInfoScanner.cs
- TextModifier.cs
- StatusBarItemAutomationPeer.cs
- EntitySetRetriever.cs
- GAC.cs
- Tool.cs
- Parameter.cs
- COM2IManagedPerPropertyBrowsingHandler.cs