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
- ParserExtension.cs
- CompositeActivityMarkupSerializer.cs
- DrawTreeNodeEventArgs.cs
- Util.cs
- XPathCompileException.cs
- ScriptReferenceEventArgs.cs
- DependencyPropertyKind.cs
- DiscreteKeyFrames.cs
- DependencyPropertyDescriptor.cs
- ConfigXmlCDataSection.cs
- DiscoveryExceptionDictionary.cs
- ConfigurationStrings.cs
- PageCatalogPart.cs
- ComplexTypeEmitter.cs
- DateTimeFormatInfo.cs
- XmlSchemaComplexContent.cs
- SpeakInfo.cs
- ContextStack.cs
- CorePropertiesFilter.cs
- FieldNameLookup.cs
- TimeSpanOrInfiniteValidator.cs
- Comparer.cs
- DesignerWithHeader.cs
- CallContext.cs
- AccessKeyManager.cs
- connectionpool.cs
- EmbossBitmapEffect.cs
- ProtectedConfigurationSection.cs
- KnownTypes.cs
- UpdateExpressionVisitor.cs
- PathTooLongException.cs
- DependencyObjectProvider.cs
- ArrayList.cs
- EntityDataSourceView.cs
- DataGridColumnEventArgs.cs
- RichTextBoxContextMenu.cs
- ISAPIWorkerRequest.cs
- COM2ComponentEditor.cs
- ButtonFlatAdapter.cs
- DispatchProxy.cs
- HashCodeCombiner.cs
- PersianCalendar.cs
- UnsafeNativeMethods.cs
- BatchStream.cs
- Camera.cs
- SetIterators.cs
- ImageAutomationPeer.cs
- XMLDiffLoader.cs
- GroupQuery.cs
- GPRECTF.cs
- WebControlParameterProxy.cs
- ConditionalWeakTable.cs
- SqlParameter.cs
- EntityPropertyMappingAttribute.cs
- SkewTransform.cs
- GenericEnumerator.cs
- ExpressionBinding.cs
- MonthCalendar.cs
- CodeGenerator.cs
- PointCollectionConverter.cs
- MutexSecurity.cs
- JoinQueryOperator.cs
- ListItemConverter.cs
- ProxyGenerator.cs
- KeyValueSerializer.cs
- RectAnimationBase.cs
- FormViewModeEventArgs.cs
- HttpStaticObjectsCollectionBase.cs
- SoapIncludeAttribute.cs
- OdbcConnection.cs
- BulletedListEventArgs.cs
- ListViewInsertEventArgs.cs
- GeometryGroup.cs
- Bidi.cs
- SectionXmlInfo.cs
- ScrollItemProviderWrapper.cs
- EventDescriptor.cs
- FactoryRecord.cs
- TypeDescriptorFilterService.cs
- RepeatButtonAutomationPeer.cs
- DataSet.cs
- SystemException.cs
- Site.cs
- ToolStripDropDownClosedEventArgs.cs
- XmlFormatExtensionAttribute.cs
- StringResourceManager.cs
- isolationinterop.cs
- SafeNativeMethods.cs
- DocumentXPathNavigator.cs
- InvalidProgramException.cs
- DataKey.cs
- COM2EnumConverter.cs
- BitmapPalettes.cs
- FileSystemInfo.cs
- DataObjectCopyingEventArgs.cs
- ParameterToken.cs
- DataSet.cs
- WpfPayload.cs
- ProfileManager.cs
- SchemaNotation.cs