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
- DateTimeFormat.cs
- AppDomainGrammarProxy.cs
- ColorBlend.cs
- ICspAsymmetricAlgorithm.cs
- PasswordDeriveBytes.cs
- XmlQuerySequence.cs
- XmlSerializationGeneratedCode.cs
- SafeMILHandle.cs
- PartialCachingAttribute.cs
- DbDataAdapter.cs
- LocatorGroup.cs
- DocumentApplication.cs
- Misc.cs
- WinInet.cs
- BasicViewGenerator.cs
- Component.cs
- AssemblyHash.cs
- Transform3DGroup.cs
- ReadOnlyDataSource.cs
- COM2ColorConverter.cs
- __TransparentProxy.cs
- DataProtection.cs
- Speller.cs
- ListBoxChrome.cs
- LocationReferenceValue.cs
- ScopelessEnumAttribute.cs
- X509Extension.cs
- URLMembershipCondition.cs
- Rotation3DAnimationUsingKeyFrames.cs
- TypeViewSchema.cs
- ISAPIRuntime.cs
- ControllableStoryboardAction.cs
- InvalidAsynchronousStateException.cs
- ReturnType.cs
- Span.cs
- EpmTargetPathSegment.cs
- TimeSpanStorage.cs
- CacheOutputQuery.cs
- ConsoleCancelEventArgs.cs
- InvalidateEvent.cs
- BevelBitmapEffect.cs
- IndentedTextWriter.cs
- PasswordBoxAutomationPeer.cs
- OperationCanceledException.cs
- LeafCellTreeNode.cs
- InternalMappingException.cs
- sitestring.cs
- StylusButtonCollection.cs
- DbMetaDataColumnNames.cs
- DefaultBindingPropertyAttribute.cs
- FormViewAutoFormat.cs
- SchemaNames.cs
- ScrollProperties.cs
- CallTemplateAction.cs
- ComponentChangingEvent.cs
- MissingManifestResourceException.cs
- CodeExporter.cs
- WriterOutput.cs
- GeneralTransform3DGroup.cs
- FunctionCommandText.cs
- BamlLocalizer.cs
- ArrayListCollectionBase.cs
- WebBrowsableAttribute.cs
- GenericTypeParameterConverter.cs
- ValidatingPropertiesEventArgs.cs
- DataSourceControl.cs
- WindowsSolidBrush.cs
- FontInfo.cs
- HMACRIPEMD160.cs
- UnsupportedPolicyOptionsException.cs
- TrailingSpaceComparer.cs
- DataGridViewRowStateChangedEventArgs.cs
- TextBox.cs
- StrokeSerializer.cs
- Random.cs
- OleDbEnumerator.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- RightsManagementEncryptionTransform.cs
- WebProxyScriptElement.cs
- ReadOnlyCollection.cs
- WizardStepBase.cs
- CodeGroup.cs
- SafeBitVector32.cs
- TraceInternal.cs
- Application.cs
- TypeConverterHelper.cs
- BindUriHelper.cs
- MimeXmlImporter.cs
- PointUtil.cs
- JpegBitmapEncoder.cs
- CellTreeNodeVisitors.cs
- GridEntryCollection.cs
- DataSourceSelectArguments.cs
- TypeUtils.cs
- ComponentFactoryHelpers.cs
- PopupControlService.cs
- WindowsContainer.cs
- AccessDataSource.cs
- ExeContext.cs
- SqlFlattener.cs