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
- ThicknessAnimationBase.cs
- CodeObject.cs
- ActiveXMessageFormatter.cs
- SafeBitVector32.cs
- RadialGradientBrush.cs
- Imaging.cs
- HttpChannelHelpers.cs
- ItemsPanelTemplate.cs
- WebHttpBehavior.cs
- ProfileEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SizeValueSerializer.cs
- LoadWorkflowByInstanceKeyCommand.cs
- mactripleDES.cs
- ColumnHeaderConverter.cs
- AudioFormatConverter.cs
- RuntimeConfig.cs
- CallbackHandler.cs
- DataSourceSelectArguments.cs
- processwaithandle.cs
- FileSystemWatcher.cs
- SystemSounds.cs
- ReflectionTypeLoadException.cs
- OrthographicCamera.cs
- ProtocolProfile.cs
- MissingMethodException.cs
- ETagAttribute.cs
- InputMethodStateTypeInfo.cs
- XmlSchemaAttributeGroup.cs
- versioninfo.cs
- InkCanvasFeedbackAdorner.cs
- GiveFeedbackEventArgs.cs
- ExternalCalls.cs
- HMAC.cs
- PieceNameHelper.cs
- WebScriptMetadataMessageEncoderFactory.cs
- ImmutableObjectAttribute.cs
- ISFClipboardData.cs
- EdmType.cs
- RangeValueProviderWrapper.cs
- OLEDB_Enum.cs
- ServerType.cs
- TableCell.cs
- _SslStream.cs
- TransactionsSectionGroup.cs
- RecordManager.cs
- HttpHandlerAction.cs
- XmlSchemaDatatype.cs
- ConfigurationProperty.cs
- Html32TextWriter.cs
- GifBitmapDecoder.cs
- FixedDocument.cs
- InkPresenterAutomationPeer.cs
- DrawingContext.cs
- ObjectResult.cs
- SQLSingle.cs
- SqlLiftIndependentRowExpressions.cs
- ExtenderProvidedPropertyAttribute.cs
- SafeProcessHandle.cs
- GenericTypeParameterBuilder.cs
- FormsAuthenticationTicket.cs
- Win32PrintDialog.cs
- Translator.cs
- WebPartRestoreVerb.cs
- DetailsViewUpdateEventArgs.cs
- WinInetCache.cs
- Region.cs
- SystemIPGlobalStatistics.cs
- ToolBarButton.cs
- AmbientProperties.cs
- FixedNode.cs
- COM2IDispatchConverter.cs
- BamlBinaryWriter.cs
- AdCreatedEventArgs.cs
- SQLGuidStorage.cs
- MimeBasePart.cs
- XPathNavigatorReader.cs
- BulletedListEventArgs.cs
- WebPartZoneBaseDesigner.cs
- ImageList.cs
- PreviewPrintController.cs
- CacheHelper.cs
- Single.cs
- MetabaseServerConfig.cs
- LassoHelper.cs
- ColorKeyFrameCollection.cs
- hwndwrapper.cs
- XmlWrappingReader.cs
- XmlILOptimizerVisitor.cs
- TextBox.cs
- RotateTransform.cs
- StoryFragments.cs
- AspNetSynchronizationContext.cs
- sqlpipe.cs
- AssociationEndMember.cs
- TextMetrics.cs
- WindowsSolidBrush.cs
- PersonalizationProvider.cs
- ListViewGroup.cs
- IisTraceListener.cs