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
- Decimal.cs
- HttpModuleActionCollection.cs
- DataGridViewRow.cs
- DBSchemaRow.cs
- HttpProfileBase.cs
- PixelFormats.cs
- SqlDataReaderSmi.cs
- Stopwatch.cs
- SqlClientWrapperSmiStreamChars.cs
- ArgumentFixer.cs
- LinqDataSourceValidationException.cs
- ProfilePropertySettingsCollection.cs
- ping.cs
- WeakReadOnlyCollection.cs
- HttpListenerContext.cs
- SeekableReadStream.cs
- NumericExpr.cs
- OneOf.cs
- IntegerFacetDescriptionElement.cs
- WebPartCatalogCloseVerb.cs
- WorkflowInstanceTerminatedRecord.cs
- IPEndPointCollection.cs
- DocumentGridContextMenu.cs
- EntityConnectionStringBuilder.cs
- WebErrorHandler.cs
- TreeView.cs
- RuntimeHandles.cs
- RuntimeResourceSet.cs
- MetadataArtifactLoaderCompositeFile.cs
- CmsUtils.cs
- StylusButtonEventArgs.cs
- FieldBuilder.cs
- ToolboxItemCollection.cs
- ListBoxItem.cs
- DynamicActivityTypeDescriptor.cs
- DataTableNameHandler.cs
- CompilerHelpers.cs
- DocumentXPathNavigator.cs
- LayoutTable.cs
- TreeNodeEventArgs.cs
- DefaultPropertiesToSend.cs
- ErrorRuntimeConfig.cs
- StaticTextPointer.cs
- BitmapEffectOutputConnector.cs
- ChannelFactory.cs
- BuildManagerHost.cs
- InstanceStore.cs
- WebPartCatalogAddVerb.cs
- ConnectionPointGlyph.cs
- Screen.cs
- XdrBuilder.cs
- InkCanvasInnerCanvas.cs
- EventLogRecord.cs
- NamespaceInfo.cs
- ReadOnlyDataSourceView.cs
- BaseDataList.cs
- XmlSchemaSimpleTypeRestriction.cs
- metadatamappinghashervisitor.cs
- FactoryGenerator.cs
- PartialCachingAttribute.cs
- RemotingConfiguration.cs
- SqlException.cs
- BatchParser.cs
- ExpressionSelection.cs
- CalendarDay.cs
- PageAsyncTask.cs
- UnsafeNativeMethods.cs
- SingleTagSectionHandler.cs
- DataViewSetting.cs
- CollaborationHelperFunctions.cs
- CompoundFileDeflateTransform.cs
- NumericUpDownAcceleration.cs
- TemplateApplicationHelper.cs
- ConfigXmlText.cs
- MetadataCache.cs
- PagesChangedEventArgs.cs
- CompiledRegexRunner.cs
- SqlProviderServices.cs
- EventLogSession.cs
- ScopelessEnumAttribute.cs
- SqlConnectionString.cs
- DateTimeSerializationSection.cs
- GridItemPatternIdentifiers.cs
- ButtonFlatAdapter.cs
- oledbconnectionstring.cs
- UnsafeNativeMethodsCLR.cs
- XmlSchemaAnnotation.cs
- RestClientProxyHandler.cs
- SByteStorage.cs
- Wizard.cs
- BitmapDecoder.cs
- Rotation3DAnimation.cs
- ResourceAssociationTypeEnd.cs
- printdlgexmarshaler.cs
- SplitterPanel.cs
- SecurityProtocolFactory.cs
- Cursor.cs
- WhiteSpaceTrimStringConverter.cs
- AnnotationResourceCollection.cs
- MediaPlayer.cs