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
- DeobfuscatingStream.cs
- SqlDataRecord.cs
- InputMethod.cs
- DeclarativeCatalogPart.cs
- AbstractSvcMapFileLoader.cs
- embossbitmapeffect.cs
- UnsupportedPolicyOptionsException.cs
- SecurityRequiresReviewAttribute.cs
- Debug.cs
- PtsHost.cs
- BuildProviderCollection.cs
- MappingItemCollection.cs
- ActivationServices.cs
- BoolExpression.cs
- GuidConverter.cs
- SuspendDesigner.cs
- InvalidCastException.cs
- AttachmentCollection.cs
- _SslState.cs
- DataGridViewComboBoxCell.cs
- BrowserTree.cs
- PrivateFontCollection.cs
- MarkupCompilePass1.cs
- WebPartDeleteVerb.cs
- HttpRuntimeSection.cs
- CfgArc.cs
- Rotation3DAnimationBase.cs
- InvokerUtil.cs
- ApplicationSettingsBase.cs
- UInt16Converter.cs
- BitmapMetadataEnumerator.cs
- DoubleConverter.cs
- ToolboxItemCollection.cs
- Activation.cs
- CodeNamespaceImportCollection.cs
- HandlerElement.cs
- BypassElementCollection.cs
- EventArgs.cs
- MDIClient.cs
- GenericIdentity.cs
- odbcmetadatacollectionnames.cs
- _PooledStream.cs
- XmlIlVisitor.cs
- DbParameterCollection.cs
- ProxyOperationRuntime.cs
- datacache.cs
- ParserHooks.cs
- XmlSchemaAttributeGroup.cs
- securitycriticaldata.cs
- SafeMILHandle.cs
- WebPartsPersonalizationAuthorization.cs
- Icon.cs
- XmlParserContext.cs
- WebBaseEventKeyComparer.cs
- RawStylusInput.cs
- AssociationSetEnd.cs
- AdornedElementPlaceholder.cs
- SafeSerializationManager.cs
- RegexBoyerMoore.cs
- FirstQueryOperator.cs
- WebMessageFormatHelper.cs
- TypeConverterHelper.cs
- ManagementEventWatcher.cs
- WebPartEditorApplyVerb.cs
- MergeLocalizationDirectives.cs
- EventMappingSettings.cs
- HtmlElementEventArgs.cs
- DrawingVisualDrawingContext.cs
- Header.cs
- DatePicker.cs
- coordinator.cs
- CalendarSelectionChangedEventArgs.cs
- DataServiceClientException.cs
- ExpressionBuilder.cs
- WebPartsSection.cs
- XLinq.cs
- _SafeNetHandles.cs
- DoubleAverageAggregationOperator.cs
- CollectionBuilder.cs
- ResourceDictionary.cs
- FontCollection.cs
- SafeFileMappingHandle.cs
- GridItemProviderWrapper.cs
- TrackingServices.cs
- SiteMembershipCondition.cs
- StrokeRenderer.cs
- CommandPlan.cs
- RecordManager.cs
- HttpClientCertificate.cs
- NetworkStream.cs
- ServiceNameElementCollection.cs
- InputBinding.cs
- CompilerGeneratedAttribute.cs
- HttpRequestTraceRecord.cs
- DSACryptoServiceProvider.cs
- AddInEnvironment.cs
- OutputScopeManager.cs
- PageRequestManager.cs
- ProfileManager.cs
- WizardForm.cs