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
- SqlParameter.cs
- Transform3DGroup.cs
- ObjectConverter.cs
- DataGridViewLinkCell.cs
- XmlObjectSerializerReadContextComplex.cs
- Certificate.cs
- WebServiceFault.cs
- ImageButton.cs
- TextComposition.cs
- BinaryMethodMessage.cs
- FontDriver.cs
- EntityClassGenerator.cs
- CodeExpressionStatement.cs
- DtdParser.cs
- MultiTrigger.cs
- TraceProvider.cs
- ResolvedKeyFrameEntry.cs
- Atom10FormatterFactory.cs
- QilXmlReader.cs
- RpcCryptoRequest.cs
- ArrayWithOffset.cs
- ExpressionPrefixAttribute.cs
- CodeArgumentReferenceExpression.cs
- IHttpResponseInternal.cs
- ConfigurationValidatorAttribute.cs
- RoutedEvent.cs
- AssemblyResourceLoader.cs
- TextCompositionEventArgs.cs
- HtmlSelect.cs
- DispatcherFrame.cs
- ImageList.cs
- EventToken.cs
- PublisherIdentityPermission.cs
- WebPartVerbsEventArgs.cs
- CompensatableSequenceActivity.cs
- XmlSchemaGroup.cs
- SourceExpressionException.cs
- DataGridViewRowCollection.cs
- COM2Properties.cs
- TraceHwndHost.cs
- ServiceReference.cs
- DataGridViewColumnCollection.cs
- TdsParserHelperClasses.cs
- XPathBuilder.cs
- VectorCollectionValueSerializer.cs
- __TransparentProxy.cs
- ClonableStack.cs
- EventLog.cs
- MsmqException.cs
- AuthenticatedStream.cs
- Lookup.cs
- SiteMapHierarchicalDataSourceView.cs
- NegatedCellConstant.cs
- DataColumnChangeEvent.cs
- PropertySourceInfo.cs
- SQlBooleanStorage.cs
- MethodSignatureGenerator.cs
- OptionUsage.cs
- MappingException.cs
- FormatVersion.cs
- ResourceReader.cs
- HandlerFactoryCache.cs
- DebugControllerThread.cs
- InfoCardUIAgent.cs
- ScriptControl.cs
- MsdtcClusterUtils.cs
- CodeTypeParameter.cs
- RequestStatusBarUpdateEventArgs.cs
- TimeEnumHelper.cs
- CultureTableRecord.cs
- VectorCollectionConverter.cs
- OptionUsage.cs
- CompilerLocalReference.cs
- ModulesEntry.cs
- MenuItemStyleCollection.cs
- NotConverter.cs
- EncoderNLS.cs
- SqlConnection.cs
- XmlDictionaryReader.cs
- UIntPtr.cs
- AutomationElement.cs
- AttachmentCollection.cs
- SchemaElement.cs
- DATA_BLOB.cs
- BCryptNative.cs
- WindowsGrip.cs
- Function.cs
- XmlSchemaAttribute.cs
- PersistenceIOParticipant.cs
- HierarchicalDataBoundControl.cs
- MD5CryptoServiceProvider.cs
- XmlNamespaceDeclarationsAttribute.cs
- Image.cs
- MemberDescriptor.cs
- TextEditorSelection.cs
- Missing.cs
- DocumentPageViewAutomationPeer.cs
- InternalConfigHost.cs
- Help.cs
- Timer.cs