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
- TableColumn.cs
- TransformGroup.cs
- FocusChangedEventArgs.cs
- DrawingBrush.cs
- EditorPart.cs
- ExpressionBindingCollection.cs
- LayoutUtils.cs
- XhtmlConformanceSection.cs
- ProjectedSlot.cs
- DataTableMapping.cs
- OleDbEnumerator.cs
- GridViewColumnHeader.cs
- ErasingStroke.cs
- FormsAuthenticationConfiguration.cs
- BitConverter.cs
- CompleteWizardStep.cs
- SwitchLevelAttribute.cs
- TaskFileService.cs
- RequestResizeEvent.cs
- GatewayIPAddressInformationCollection.cs
- LinkArea.cs
- MultipartContentParser.cs
- StringFormat.cs
- SimpleRecyclingCache.cs
- Line.cs
- WindowsPen.cs
- RuntimeVariablesExpression.cs
- RectangleConverter.cs
- CurrencyManager.cs
- AutomationIdentifier.cs
- AudioStateChangedEventArgs.cs
- AutomationElement.cs
- XmlSerializationWriter.cs
- ClientProxyGenerator.cs
- BitmapEffectGeneralTransform.cs
- FeatureSupport.cs
- CodeDefaultValueExpression.cs
- AssemblyFilter.cs
- RegisteredScript.cs
- ClassValidator.cs
- AnnotationAuthorChangedEventArgs.cs
- Win32Exception.cs
- hresults.cs
- DataGridViewImageCell.cs
- SmiRecordBuffer.cs
- TreeNodeMouseHoverEvent.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DataBindingCollectionConverter.cs
- XmlAnyElementAttributes.cs
- DataGridViewTextBoxCell.cs
- FixedSOMPageConstructor.cs
- HttpWebResponse.cs
- MultiSelectRootGridEntry.cs
- ProtocolsConfiguration.cs
- DataBoundControl.cs
- TrailingSpaceComparer.cs
- DecimalSumAggregationOperator.cs
- control.ime.cs
- ProcessHostFactoryHelper.cs
- NamespaceDisplay.xaml.cs
- SubtreeProcessor.cs
- CheckedListBox.cs
- DateTimeParse.cs
- AttributeData.cs
- UnescapedXmlDiagnosticData.cs
- NonceToken.cs
- FieldToken.cs
- HttpPostedFileBase.cs
- FileDataSourceCache.cs
- FillRuleValidation.cs
- FlowDocumentReaderAutomationPeer.cs
- DictionaryMarkupSerializer.cs
- PersistenceProvider.cs
- InvalidProgramException.cs
- MsdtcClusterUtils.cs
- ExtendedProperty.cs
- VsPropertyGrid.cs
- ExceptionHelpers.cs
- TrackingStringDictionary.cs
- SqlTrackingQuery.cs
- IgnorePropertiesAttribute.cs
- X500Name.cs
- MimeXmlReflector.cs
- CdpEqualityComparer.cs
- SerializerWriterEventHandlers.cs
- CommandEventArgs.cs
- NativeMethods.cs
- LoadedEvent.cs
- StrokeCollectionConverter.cs
- WSSecurityXXX2005.cs
- XmlC14NWriter.cs
- Int32KeyFrameCollection.cs
- CommandConverter.cs
- SqlMethods.cs
- DomainUpDown.cs
- DesignerTransaction.cs
- XomlCompilerError.cs
- EntityContainerRelationshipSet.cs
- ValueHandle.cs
- SeekStoryboard.cs