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
- KerberosSecurityTokenProvider.cs
- __ComObject.cs
- FunctionNode.cs
- ResourceAssociationSet.cs
- FormClosingEvent.cs
- XPathExpr.cs
- EventSource.cs
- RowUpdatedEventArgs.cs
- ActivityExecutionContext.cs
- BuilderElements.cs
- DiscardableAttribute.cs
- FieldToken.cs
- ExecutionContext.cs
- DataControlCommands.cs
- SkewTransform.cs
- Point3DAnimationUsingKeyFrames.cs
- WindowsFormsSectionHandler.cs
- URI.cs
- PopupControlService.cs
- AsymmetricSignatureDeformatter.cs
- DataTablePropertyDescriptor.cs
- MouseGesture.cs
- JoinCqlBlock.cs
- MatrixTransform.cs
- InternalRelationshipCollection.cs
- RepeatBehavior.cs
- FixedPageAutomationPeer.cs
- InstanceKeyCompleteException.cs
- IPPacketInformation.cs
- TransportContext.cs
- BitmapEffectDrawingContent.cs
- HandledMouseEvent.cs
- XmlElementElementCollection.cs
- ConcurrentQueue.cs
- XmlnsDefinitionAttribute.cs
- SmtpLoginAuthenticationModule.cs
- ProtocolElementCollection.cs
- ClientSideQueueItem.cs
- SiteMapDataSourceView.cs
- NavigationEventArgs.cs
- SafeFileMappingHandle.cs
- RectAnimationUsingKeyFrames.cs
- TextFormatterContext.cs
- RegexWriter.cs
- AspNetHostingPermission.cs
- WsdlHelpGeneratorElement.cs
- PasswordPropertyTextAttribute.cs
- COM2FontConverter.cs
- ExpressionParser.cs
- IpcServerChannel.cs
- ToolStripDropTargetManager.cs
- X509SubjectKeyIdentifierClause.cs
- OutputScopeManager.cs
- BufferBuilder.cs
- ListCollectionView.cs
- DynamicFilter.cs
- XmlChildNodes.cs
- ActivityCollectionMarkupSerializer.cs
- XXXOnTypeBuilderInstantiation.cs
- ViewStateException.cs
- SafeLocalMemHandle.cs
- UniqueEventHelper.cs
- BaseCodeDomTreeGenerator.cs
- SQLMembershipProvider.cs
- SerialStream.cs
- Deflater.cs
- DeferredTextReference.cs
- Utility.cs
- HostProtectionPermission.cs
- COM2ExtendedTypeConverter.cs
- LocatorManager.cs
- FlowDocumentScrollViewer.cs
- SpellerError.cs
- PathParser.cs
- PolicyException.cs
- parserscommon.cs
- FileNotFoundException.cs
- BindingExpressionUncommonField.cs
- BaseComponentEditor.cs
- OdbcInfoMessageEvent.cs
- XmlSchemaAttribute.cs
- StringFreezingAttribute.cs
- BridgeDataReader.cs
- SystemIPInterfaceStatistics.cs
- AtomParser.cs
- TableItemPattern.cs
- ColumnMap.cs
- HttpSysSettings.cs
- ApplicationManager.cs
- StringDictionary.cs
- BindingExpression.cs
- MediaEntryAttribute.cs
- Size3DConverter.cs
- ContextActivityUtils.cs
- ValueOfAction.cs
- TemplateNodeContextMenu.cs
- Point4D.cs
- FormsIdentity.cs
- WebPart.cs
- MobileControlPersister.cs