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
- ThemeDirectoryCompiler.cs
- WpfPayload.cs
- PropertyInfoSet.cs
- BaseValidator.cs
- SpellCheck.cs
- CheckBox.cs
- RunInstallerAttribute.cs
- TreeNodeConverter.cs
- SiteMapDataSource.cs
- PresentationTraceSources.cs
- PresentationTraceSources.cs
- DataGridViewAccessibleObject.cs
- WindowsEditBox.cs
- Pkcs9Attribute.cs
- ListMarkerLine.cs
- ProjectionCamera.cs
- StandardCommandToolStripMenuItem.cs
- DbProviderFactoriesConfigurationHandler.cs
- DesignerTransaction.cs
- ThemeableAttribute.cs
- XAMLParseException.cs
- EmptyEnumerator.cs
- InteropAutomationProvider.cs
- _FtpControlStream.cs
- TypeHelper.cs
- AnnotationService.cs
- IsolatedStorageException.cs
- LicenseException.cs
- PackageRelationshipCollection.cs
- DataControlPagerLinkButton.cs
- CallSiteHelpers.cs
- RequestCachePolicy.cs
- AvTraceFormat.cs
- PointCollection.cs
- ThreadAttributes.cs
- HttpConfigurationContext.cs
- WebPartDisplayMode.cs
- ITextView.cs
- DataGrid.cs
- TypeToStringValueConverter.cs
- RolePrincipal.cs
- PreviewPageInfo.cs
- CommandSet.cs
- MarshalByRefObject.cs
- ApplicationException.cs
- GeneralTransformGroup.cs
- util.cs
- InertiaExpansionBehavior.cs
- DataGridViewLinkColumn.cs
- EncodingInfo.cs
- OdbcConnectionHandle.cs
- SqlPersonalizationProvider.cs
- CodeVariableDeclarationStatement.cs
- FrameworkPropertyMetadata.cs
- AuthenticationModuleElementCollection.cs
- ProfileParameter.cs
- RemotingException.cs
- DataControlLinkButton.cs
- BitmapData.cs
- StandardTransformFactory.cs
- ValidationErrorCollection.cs
- SrgsElementFactoryCompiler.cs
- DifferencingCollection.cs
- SafeFindHandle.cs
- DBConcurrencyException.cs
- TrackingWorkflowEventArgs.cs
- LocationSectionRecord.cs
- OptimizedTemplateContentHelper.cs
- PrintDialog.cs
- PrimitiveSchema.cs
- DataServiceConfiguration.cs
- HtmlTableCellCollection.cs
- GacUtil.cs
- AssemblyAssociatedContentFileAttribute.cs
- PreDigestedSignedInfo.cs
- PreviewKeyDownEventArgs.cs
- CustomLineCap.cs
- MobileTemplatedControlDesigner.cs
- RemotingException.cs
- QfeChecker.cs
- SqlDataSourceFilteringEventArgs.cs
- ListViewInsertedEventArgs.cs
- LinqDataSourceValidationException.cs
- ContextInformation.cs
- ImagingCache.cs
- AssemblyCollection.cs
- SqlMetaData.cs
- SQLByte.cs
- GenericAuthenticationEventArgs.cs
- DebugView.cs
- HttpsChannelListener.cs
- DebugView.cs
- BitSet.cs
- RenamedEventArgs.cs
- XmlText.cs
- EventlogProvider.cs
- HierarchicalDataBoundControl.cs
- Material.cs
- ItemCheckEvent.cs
- InternalEnumValidator.cs