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
- Win32SafeHandles.cs
- IgnoreFileBuildProvider.cs
- XmlSerializerFormatAttribute.cs
- RoutingChannelExtension.cs
- DataGridViewImageCell.cs
- PhonemeEventArgs.cs
- AccessText.cs
- OleDbConnectionInternal.cs
- RequestResizeEvent.cs
- StructuralType.cs
- TextMarkerSource.cs
- Point4DValueSerializer.cs
- ButtonBaseAdapter.cs
- WebControlsSection.cs
- SemanticResultKey.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- WebPartConnectionsCloseVerb.cs
- SamlAttribute.cs
- SqlDataSourceCommandParser.cs
- DesignerDataTableBase.cs
- CommonProperties.cs
- TTSEngineTypes.cs
- VisualBasicSettingsHandler.cs
- CustomAttributeFormatException.cs
- AlignmentXValidation.cs
- DeclarativeConditionsCollection.cs
- MasterPageBuildProvider.cs
- QueryUtil.cs
- TextElementAutomationPeer.cs
- SystemIPGlobalProperties.cs
- EntityDataSourceView.cs
- IISUnsafeMethods.cs
- ActivityExecutionContextCollection.cs
- TextEndOfSegment.cs
- GC.cs
- InstanceCreationEditor.cs
- AssociationSetEnd.cs
- AttributeProviderAttribute.cs
- AspNetSynchronizationContext.cs
- CommandBindingCollection.cs
- VisualBasicDesignerHelper.cs
- ServiceContractListItem.cs
- StylusPointPropertyInfoDefaults.cs
- ApplicationProxyInternal.cs
- WebException.cs
- DataControlFieldHeaderCell.cs
- PackageRelationshipCollection.cs
- CheckBoxAutomationPeer.cs
- SerializationObjectManager.cs
- ColorTranslator.cs
- CalendarKeyboardHelper.cs
- OpenFileDialog.cs
- AdPostCacheSubstitution.cs
- InfoCardBaseException.cs
- MinimizableAttributeTypeConverter.cs
- FixedStringLookup.cs
- DbParameterCollection.cs
- SmtpAuthenticationManager.cs
- FamilyMapCollection.cs
- glyphs.cs
- XNodeNavigator.cs
- User.cs
- Int32Rect.cs
- ProviderCommandInfoUtils.cs
- DataKey.cs
- ResourceReferenceKeyNotFoundException.cs
- DocComment.cs
- BuildProviderAppliesToAttribute.cs
- ServiceObjectContainer.cs
- FragmentNavigationEventArgs.cs
- ConditionalExpression.cs
- GrammarBuilderBase.cs
- LayoutSettings.cs
- PeerPresenceInfo.cs
- CodeCommentStatement.cs
- AvTrace.cs
- RichTextBoxConstants.cs
- BindingBase.cs
- TransformerInfoCollection.cs
- HttpModuleActionCollection.cs
- TraceContextEventArgs.cs
- OleDbReferenceCollection.cs
- TypedDataSourceCodeGenerator.cs
- Win32.cs
- FunctionNode.cs
- ExpandSegment.cs
- SessionPageStateSection.cs
- DeferredSelectedIndexReference.cs
- WindowsRebar.cs
- CqlErrorHelper.cs
- ParentUndoUnit.cs
- Transactions.cs
- QuaternionRotation3D.cs
- ListViewUpdatedEventArgs.cs
- BookmarkUndoUnit.cs
- MembershipValidatePasswordEventArgs.cs
- Maps.cs
- SQLInt32Storage.cs
- DiscreteKeyFrames.cs
- TemplateEditingVerb.cs