Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PropertyToken.cs
- KoreanCalendar.cs
- WindowPatternIdentifiers.cs
- IIS7UserPrincipal.cs
- CmsInterop.cs
- SynchronizedInputHelper.cs
- DocumentEventArgs.cs
- cookie.cs
- Utils.cs
- XPathDocumentBuilder.cs
- EpmContentDeSerializerBase.cs
- StringBuilder.cs
- TransformGroup.cs
- ControlParameter.cs
- SafeProcessHandle.cs
- XmlWriterSettings.cs
- EmptyReadOnlyDictionaryInternal.cs
- ListViewInsertedEventArgs.cs
- EtwTrace.cs
- Base64Decoder.cs
- ParserExtension.cs
- coordinator.cs
- WorkflowDebuggerSteppingAttribute.cs
- FontSourceCollection.cs
- SqlMethods.cs
- ToolStripRenderer.cs
- TraceContextEventArgs.cs
- BitmapEffectDrawingContextState.cs
- CompositeCollection.cs
- TypeToken.cs
- DataGrid.cs
- FacetChecker.cs
- SimpleType.cs
- MatrixConverter.cs
- ScalarType.cs
- ColumnMapVisitor.cs
- CodeMemberProperty.cs
- DateTimeFormatInfo.cs
- WpfXamlLoader.cs
- EntityContainerRelationshipSetEnd.cs
- ToolZone.cs
- CatalogPartCollection.cs
- SpecularMaterial.cs
- WebPartConnectionsDisconnectVerb.cs
- SharedConnectionInfo.cs
- KeySplineConverter.cs
- HMACSHA1.cs
- RequestTimeoutManager.cs
- TextRangeEdit.cs
- XmlSchemaSimpleContent.cs
- Encoder.cs
- HttpModuleAction.cs
- GlobalizationAssembly.cs
- CompositeControl.cs
- EntitySetBase.cs
- CrossAppDomainChannel.cs
- SqlCacheDependencySection.cs
- ThreadStateException.cs
- SessionPageStateSection.cs
- XslTransform.cs
- DrawingImage.cs
- DataGridTableCollection.cs
- ValueTable.cs
- SchemaImporterExtensionsSection.cs
- CroppedBitmap.cs
- XamlVector3DCollectionSerializer.cs
- BrowserCapabilitiesFactory.cs
- IPEndPointCollection.cs
- UIElement.cs
- ProgressBarRenderer.cs
- ListMarkerLine.cs
- WebPartMinimizeVerb.cs
- DataSourceView.cs
- StandardToolWindows.cs
- FlowLayoutPanel.cs
- WebAdminConfigurationHelper.cs
- DeclarativeCatalogPart.cs
- ZipIOBlockManager.cs
- NativeMethods.cs
- NativeMethods.cs
- Transform.cs
- PartBasedPackageProperties.cs
- BasicExpandProvider.cs
- PartialCachingAttribute.cs
- UIElementHelper.cs
- HtmlInputText.cs
- CellParaClient.cs
- WorkflowServiceHost.cs
- Style.cs
- SafeCertificateContext.cs
- XamlWriter.cs
- KerberosRequestorSecurityToken.cs
- LineServices.cs
- RecognizerStateChangedEventArgs.cs
- LocatorPartList.cs
- RoleExceptions.cs
- PixelFormats.cs
- ParallelTimeline.cs
- DropTarget.cs
- NavigationFailedEventArgs.cs