Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / EventPrivateKey.cs / 1305600 / 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
- Win32MouseDevice.cs
- ToolStripGripRenderEventArgs.cs
- Animatable.cs
- DiscoveryDocumentReference.cs
- EventRouteFactory.cs
- StrokeDescriptor.cs
- BindingNavigator.cs
- PersonalizationEntry.cs
- TableLayoutColumnStyleCollection.cs
- TypeInformation.cs
- ClientUIRequest.cs
- MDIControlStrip.cs
- ipaddressinformationcollection.cs
- TextWriterTraceListener.cs
- SafeNativeMethods.cs
- AnnotationResourceCollection.cs
- X509RecipientCertificateClientElement.cs
- TraceInternal.cs
- IdentitySection.cs
- OutgoingWebRequestContext.cs
- ArrayTypeMismatchException.cs
- AdapterDictionary.cs
- Track.cs
- SelectionUIHandler.cs
- MemoryRecordBuffer.cs
- CheckBox.cs
- AttributeData.cs
- XmlCompatibilityReader.cs
- SplitterPanelDesigner.cs
- DbConnectionPoolGroup.cs
- SimpleTextLine.cs
- ClientSideProviderDescription.cs
- NamespaceInfo.cs
- SQLDouble.cs
- XmlWhitespace.cs
- PixelFormat.cs
- BitmapEffectDrawingContextState.cs
- TypeUsageBuilder.cs
- Interlocked.cs
- ContainerSelectorActiveEvent.cs
- Int32.cs
- PartManifestEntry.cs
- parserscommon.cs
- ButtonBaseAutomationPeer.cs
- WeakReadOnlyCollection.cs
- MimeWriter.cs
- XDRSchema.cs
- WebBrowserPermission.cs
- precedingquery.cs
- AttributeAction.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TextTreeDeleteContentUndoUnit.cs
- OdbcEnvironment.cs
- Pool.cs
- ExchangeUtilities.cs
- NetworkAddressChange.cs
- SafeFreeMibTable.cs
- TemplateInstanceAttribute.cs
- OracleBoolean.cs
- Code.cs
- CompilationSection.cs
- PreProcessInputEventArgs.cs
- DefaultCommandExtensionCallback.cs
- BrowserTree.cs
- KnownTypesProvider.cs
- SvcMapFileSerializer.cs
- DetailsViewRow.cs
- UpdateException.cs
- BinaryObjectReader.cs
- ConfigurationValues.cs
- SignHashRequest.cs
- AttributedMetaModel.cs
- TableLayout.cs
- PartialTrustHelpers.cs
- SqlComparer.cs
- _BaseOverlappedAsyncResult.cs
- ConfigurationSchemaErrors.cs
- RsaSecurityTokenAuthenticator.cs
- Int32RectConverter.cs
- MethodBuilder.cs
- SqlDependencyUtils.cs
- DbDeleteCommandTree.cs
- RepeaterItemEventArgs.cs
- Point4D.cs
- WindowsGraphicsWrapper.cs
- TreeViewImageKeyConverter.cs
- ScrollBarRenderer.cs
- datacache.cs
- RoleManagerSection.cs
- DecimalConstantAttribute.cs
- SystemNetworkInterface.cs
- UIPropertyMetadata.cs
- AuthenticationException.cs
- RawStylusInputCustomDataList.cs
- WindowsContainer.cs
- VisualBrush.cs
- ExtensionQuery.cs
- ProfessionalColors.cs
- ControlPaint.cs
- ImageCodecInfoPrivate.cs