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
- DtrList.cs
- BaseCollection.cs
- EmbeddedMailObject.cs
- SafeViewOfFileHandle.cs
- PageVisual.cs
- LockedHandleGlyph.cs
- DecimalAnimationBase.cs
- CompiledRegexRunnerFactory.cs
- LineBreakRecord.cs
- DataGridColumnHeaderAutomationPeer.cs
- InputLanguage.cs
- MasterPageParser.cs
- CachingHintValidation.cs
- FlowDecisionDesigner.xaml.cs
- baseaxisquery.cs
- CompareInfo.cs
- SafeViewOfFileHandle.cs
- sqlcontext.cs
- FormatSettings.cs
- DataRecordInternal.cs
- XPathDocument.cs
- SafeNativeMethods.cs
- Menu.cs
- SQLMembershipProvider.cs
- FontStyleConverter.cs
- HtmlButton.cs
- DataGridViewColumn.cs
- RegexMatch.cs
- WindowShowOrOpenTracker.cs
- Material.cs
- NavigationExpr.cs
- GrammarBuilderWildcard.cs
- Win32.cs
- TableItemStyle.cs
- DataGridViewLayoutData.cs
- ScriptingRoleServiceSection.cs
- RepeatInfo.cs
- HierarchicalDataTemplate.cs
- WebServiceReceive.cs
- SqlOuterApplyReducer.cs
- ConfigurationStrings.cs
- Resources.Designer.cs
- StaticContext.cs
- DataGridViewColumn.cs
- CustomErrorCollection.cs
- SelectionProviderWrapper.cs
- ListDictionary.cs
- FirstMatchCodeGroup.cs
- AuthenticationConfig.cs
- FilterUserControlBase.cs
- DetailsViewRowCollection.cs
- RegexRunner.cs
- wgx_sdk_version.cs
- NavigationProperty.cs
- Model3DGroup.cs
- XXXOnTypeBuilderInstantiation.cs
- WindowsListView.cs
- DataGridViewRowConverter.cs
- TableRowsCollectionEditor.cs
- TextEditorMouse.cs
- ControlPropertyNameConverter.cs
- WinFormsSecurity.cs
- FormDocumentDesigner.cs
- UserControl.cs
- SafeProcessHandle.cs
- FileClassifier.cs
- UdpDuplexChannel.cs
- BindingCollection.cs
- EntityKeyElement.cs
- RegexMatch.cs
- EdmItemCollection.cs
- ReliabilityContractAttribute.cs
- MetadataStore.cs
- MetabaseReader.cs
- StructuredTypeInfo.cs
- Wow64ConfigurationLoader.cs
- QilLiteral.cs
- ResolveCriteria.cs
- Model3DCollection.cs
- MetafileHeaderWmf.cs
- HyperLinkDataBindingHandler.cs
- LocalsItemDescription.cs
- SQLMoneyStorage.cs
- ContainerAction.cs
- SecurityProtocol.cs
- ToolboxDataAttribute.cs
- SizeF.cs
- NameSpaceExtractor.cs
- SafeReversePInvokeHandle.cs
- PropertyDescriptorGridEntry.cs
- DataGridCaption.cs
- IndexedString.cs
- DLinqTableProvider.cs
- ListBase.cs
- WebPartConnectionsCancelEventArgs.cs
- ControlValuePropertyAttribute.cs
- XmlIgnoreAttribute.cs
- GestureRecognitionResult.cs
- SByte.cs
- DataViewManagerListItemTypeDescriptor.cs