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
- ButtonRenderer.cs
- SpAudioStreamWrapper.cs
- validationstate.cs
- ColorTranslator.cs
- HttpDictionary.cs
- arclist.cs
- ObjectDataSourceDisposingEventArgs.cs
- MetadataItemSerializer.cs
- _UncName.cs
- MergablePropertyAttribute.cs
- EqualityArray.cs
- DictionaryEditChange.cs
- ServiceContractListItemList.cs
- FrameworkElement.cs
- unitconverter.cs
- MonitoringDescriptionAttribute.cs
- HtmlTextArea.cs
- SessionPageStateSection.cs
- MimeImporter.cs
- TimelineClockCollection.cs
- WebPartChrome.cs
- HScrollBar.cs
- TablePatternIdentifiers.cs
- SocketInformation.cs
- UserNamePasswordValidator.cs
- PolyQuadraticBezierSegment.cs
- ItemsChangedEventArgs.cs
- ReadOnlyDataSourceView.cs
- CompModSwitches.cs
- Screen.cs
- FontStyleConverter.cs
- DirectionalLight.cs
- GeometryHitTestResult.cs
- ThousandthOfEmRealDoubles.cs
- WebPartUserCapability.cs
- PointCollectionValueSerializer.cs
- XmlKeywords.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TextBoxBase.cs
- EnterpriseServicesHelper.cs
- WindowsListViewGroup.cs
- CrossContextChannel.cs
- MD5Cng.cs
- OneOf.cs
- BooleanExpr.cs
- AssertSection.cs
- DataColumnMapping.cs
- ObjectListComponentEditor.cs
- CacheChildrenQuery.cs
- BinarySerializer.cs
- Knowncolors.cs
- InfocardExtendedInformationEntry.cs
- StylusEditingBehavior.cs
- UserControlDocumentDesigner.cs
- XmlILModule.cs
- Control.cs
- Decoder.cs
- DetailsViewDesigner.cs
- BmpBitmapDecoder.cs
- FeatureSupport.cs
- TreeNode.cs
- SingleObjectCollection.cs
- CompilationSection.cs
- CharAnimationBase.cs
- WinOEToolBoxItem.cs
- TokenizerHelper.cs
- PageBuildProvider.cs
- BuildDependencySet.cs
- ToolStripContentPanel.cs
- FontCollection.cs
- UIHelper.cs
- TimeSpanValidatorAttribute.cs
- SudsParser.cs
- UnionExpr.cs
- coordinator.cs
- HttpException.cs
- DataContract.cs
- DataGridTableCollection.cs
- BrowserCapabilitiesCompiler.cs
- BasicExpressionVisitor.cs
- TypeConverterAttribute.cs
- SortQueryOperator.cs
- UpdateProgress.cs
- CodeFieldReferenceExpression.cs
- PassportIdentity.cs
- GroupDescription.cs
- MethodToken.cs
- Tuple.cs
- SQLMembershipProvider.cs
- SerializationStore.cs
- TextSpan.cs
- FormViewInsertEventArgs.cs
- GenericParameterDataContract.cs
- InheritanceAttribute.cs
- FileSystemInfo.cs
- WindowsSysHeader.cs
- StorageComplexPropertyMapping.cs
- AsnEncodedData.cs
- InheritanceAttribute.cs
- PeerEndPoint.cs