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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Normalizer.cs
- GroupItem.cs
- SettingsPropertyValueCollection.cs
- FormsAuthenticationCredentials.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- XslTransformFileEditor.cs
- CngProperty.cs
- bindurihelper.cs
- PtsCache.cs
- AuthenticationException.cs
- WinFormsComponentEditor.cs
- IDataContractSurrogate.cs
- TreeViewImageIndexConverter.cs
- CommandHelpers.cs
- SlotInfo.cs
- AccessDataSourceWizardForm.cs
- RoutedCommand.cs
- XmlDataSourceNodeDescriptor.cs
- ResourcesBuildProvider.cs
- MsmqChannelFactory.cs
- PropertyCollection.cs
- TypeResolvingOptions.cs
- HwndTarget.cs
- CheckBoxField.cs
- BamlRecordHelper.cs
- WebServiceData.cs
- RepeaterItemEventArgs.cs
- GlobalAllocSafeHandle.cs
- RangeBase.cs
- DecoderBestFitFallback.cs
- Menu.cs
- HtmlEncodedRawTextWriter.cs
- ContextMarshalException.cs
- AssemblyCache.cs
- InternalConfigSettingsFactory.cs
- RenderData.cs
- XmlSchemaSet.cs
- BmpBitmapDecoder.cs
- _HeaderInfo.cs
- CodePrimitiveExpression.cs
- ExpressionDumper.cs
- xmlNames.cs
- BindingContext.cs
- EventLogPermissionHolder.cs
- TabItemWrapperAutomationPeer.cs
- Block.cs
- HtmlTernaryTree.cs
- ExtractorMetadata.cs
- PageVisual.cs
- SettingsBindableAttribute.cs
- AppModelKnownContentFactory.cs
- DbCommandDefinition.cs
- DataKey.cs
- StructuralObject.cs
- RequestCacheValidator.cs
- AssociationType.cs
- CompatibleIComparer.cs
- XmlMapping.cs
- BindingExpressionUncommonField.cs
- SizeAnimationBase.cs
- WindowsRegion.cs
- X509WindowsSecurityToken.cs
- TabControlEvent.cs
- SelectionRangeConverter.cs
- HandlerBase.cs
- FormView.cs
- ProcessHost.cs
- DiagnosticTraceRecords.cs
- GenericUriParser.cs
- SizeLimitedCache.cs
- TemplateNameScope.cs
- ImageListStreamer.cs
- TemplatedWizardStep.cs
- PathFigureCollection.cs
- AuthenticationServiceManager.cs
- CompilerScope.Storage.cs
- ReachIDocumentPaginatorSerializer.cs
- SqlSupersetValidator.cs
- LicenseManager.cs
- DataGridViewRowHeaderCell.cs
- DataSourceXmlSerializer.cs
- WebServiceHandler.cs
- WindowHideOrCloseTracker.cs
- EventArgs.cs
- InternalConfigHost.cs
- CannotUnloadAppDomainException.cs
- BitmapImage.cs
- QueryableFilterRepeater.cs
- XmlCharType.cs
- WorkItem.cs
- ToolboxComponentsCreatedEventArgs.cs
- Policy.cs
- DetailsViewInsertEventArgs.cs
- TypedTableBase.cs
- ObservableCollection.cs
- InvariantComparer.cs
- MarginsConverter.cs
- DropDownList.cs
- TextBoxAutomationPeer.cs
- TextElement.cs