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
- ResourceIDHelper.cs
- SystemGatewayIPAddressInformation.cs
- AndMessageFilterTable.cs
- WindowAutomationPeer.cs
- DataGridViewTopLeftHeaderCell.cs
- Events.cs
- InvokePattern.cs
- ControlPager.cs
- FocusTracker.cs
- DesignerActionList.cs
- AutoGeneratedFieldProperties.cs
- MetadataSource.cs
- TypeForwardedToAttribute.cs
- DragDrop.cs
- SqlCacheDependencyDatabaseCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- DataTableNewRowEvent.cs
- NeutralResourcesLanguageAttribute.cs
- AuthorizationRule.cs
- Site.cs
- SqlUDTStorage.cs
- AutoCompleteStringCollection.cs
- NavigationService.cs
- PagedDataSource.cs
- XamlBuildProvider.cs
- ITextView.cs
- UpdateRecord.cs
- TypeConverterAttribute.cs
- QueryExtender.cs
- XamlParser.cs
- ImageConverter.cs
- StatusBarItemAutomationPeer.cs
- UpdatePanelTrigger.cs
- JumpTask.cs
- SystemNetworkInterface.cs
- PngBitmapEncoder.cs
- Operand.cs
- DataGridViewCellValidatingEventArgs.cs
- RootBuilder.cs
- Lease.cs
- EvidenceTypeDescriptor.cs
- MessageOperationFormatter.cs
- ServiceModelExtensionCollectionElement.cs
- TdsEnums.cs
- WebScriptMetadataMessageEncoderFactory.cs
- AccessibleObject.cs
- InvokeMethodDesigner.xaml.cs
- ListCollectionView.cs
- MemberHolder.cs
- PageSettings.cs
- GridEntryCollection.cs
- SecurityTokenValidationException.cs
- ExtendedPropertyDescriptor.cs
- CodeTryCatchFinallyStatement.cs
- SqlBooleanMismatchVisitor.cs
- PerformanceCountersElement.cs
- sqlnorm.cs
- URL.cs
- CommandEventArgs.cs
- NavigationProperty.cs
- LicenseException.cs
- GeneralTransform3D.cs
- AssemblyInfo.cs
- ToolStripItem.cs
- TreeIterator.cs
- DesignerVerb.cs
- TextElementEnumerator.cs
- ProfilePropertySettings.cs
- TransformConverter.cs
- AuthenticationSection.cs
- UIElementAutomationPeer.cs
- HealthMonitoringSectionHelper.cs
- GPRECT.cs
- CultureMapper.cs
- PropertyMapper.cs
- WindowsToolbarAsMenu.cs
- CodeTypeMemberCollection.cs
- ArraySegment.cs
- ImageButton.cs
- ExclusiveTcpListener.cs
- DbDataReader.cs
- EventLogPermission.cs
- SystemResources.cs
- WaitHandle.cs
- RedirectionProxy.cs
- BoundsDrawingContextWalker.cs
- IsolatedStorageFile.cs
- FixedSOMTextRun.cs
- CaseStatementProjectedSlot.cs
- PackageRelationship.cs
- PrintControllerWithStatusDialog.cs
- ListItemsPage.cs
- CodeGroup.cs
- MessagePropertyFilter.cs
- XPathPatternParser.cs
- NonVisualControlAttribute.cs
- SchemaContext.cs
- OleDbParameterCollection.cs
- DoubleLinkList.cs
- SR.cs