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
- ServiceBusyException.cs
- XPathParser.cs
- PackWebResponse.cs
- ProvidersHelper.cs
- Splitter.cs
- TdsValueSetter.cs
- HostingPreferredMapPath.cs
- BackgroundFormatInfo.cs
- ListSortDescription.cs
- AnnotationHelper.cs
- ComPlusSynchronizationContext.cs
- ObjectQueryState.cs
- SqlParameterizer.cs
- HwndSource.cs
- ComplexBindingPropertiesAttribute.cs
- CornerRadius.cs
- InputElement.cs
- RoutingUtilities.cs
- Selector.cs
- IsolatedStorageFileStream.cs
- CacheHelper.cs
- DesignSurfaceEvent.cs
- BindingManagerDataErrorEventArgs.cs
- PageCatalogPart.cs
- ScrollData.cs
- TextTabProperties.cs
- StylusCaptureWithinProperty.cs
- XmlDataDocument.cs
- SevenBitStream.cs
- sitestring.cs
- ImmutablePropertyDescriptorGridEntry.cs
- HashCodeCombiner.cs
- WorkerRequest.cs
- DataSvcMapFileSerializer.cs
- Preprocessor.cs
- NotifyParentPropertyAttribute.cs
- TagMapInfo.cs
- JsonGlobals.cs
- BindableTemplateBuilder.cs
- DataGridViewCellParsingEventArgs.cs
- HandlerMappingMemo.cs
- MimePart.cs
- RegistryExceptionHelper.cs
- KeyEvent.cs
- XmlValidatingReader.cs
- ListenerUnsafeNativeMethods.cs
- XmlC14NWriter.cs
- AppDomainManager.cs
- XhtmlBasicTextBoxAdapter.cs
- StickyNoteAnnotations.cs
- GrammarBuilderBase.cs
- StringUtil.cs
- HttpProcessUtility.cs
- HandlerMappingMemo.cs
- SiteOfOriginContainer.cs
- recordstate.cs
- SmiSettersStream.cs
- NativeMethods.cs
- XsdSchemaFileEditor.cs
- PassportIdentity.cs
- TranslateTransform.cs
- PartialCachingAttribute.cs
- DelegatingTypeDescriptionProvider.cs
- NamespaceInfo.cs
- SecurityUtils.cs
- ConcurrencyMode.cs
- _KerberosClient.cs
- ConvertersCollection.cs
- BamlMapTable.cs
- CodeAttributeDeclarationCollection.cs
- EqualityComparer.cs
- MouseGestureConverter.cs
- PlanCompilerUtil.cs
- ToolbarAUtomationPeer.cs
- HtmlListAdapter.cs
- CompilationLock.cs
- Native.cs
- ButtonRenderer.cs
- XmlChildNodes.cs
- Rotation3DAnimation.cs
- HtmlSelect.cs
- VirtualizingStackPanel.cs
- ContextMenu.cs
- PagedDataSource.cs
- BoundField.cs
- ReleaseInstanceMode.cs
- _PooledStream.cs
- EncoderNLS.cs
- MessagingDescriptionAttribute.cs
- NumberSubstitution.cs
- MailDefinition.cs
- AdapterUtil.cs
- ResolveDuplex11AsyncResult.cs
- SqlReorderer.cs
- SqlCacheDependency.cs
- DesignerObjectListAdapter.cs
- AuthenticatingEventArgs.cs
- WebHttpDispatchOperationSelectorData.cs
- DataGridItem.cs
- _ScatterGatherBuffers.cs