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
- ConfigurationException.cs
- TextElementCollection.cs
- DeflateEmulationStream.cs
- ProtocolsConfigurationEntry.cs
- TableLayoutCellPaintEventArgs.cs
- WebMessageFormatHelper.cs
- FontInfo.cs
- ContentIterators.cs
- TemplateControlParser.cs
- ValidationService.cs
- ExtenderProvidedPropertyAttribute.cs
- HtmlInputReset.cs
- WindowsAuthenticationEventArgs.cs
- ChannelCredentials.cs
- SegmentInfo.cs
- SapiRecoInterop.cs
- HGlobalSafeHandle.cs
- FixedSOMFixedBlock.cs
- CaseStatementProjectedSlot.cs
- DataPagerFieldItem.cs
- DataGridTable.cs
- PlatformNotSupportedException.cs
- SelectingProviderEventArgs.cs
- PropertyGridView.cs
- MetadataPropertyAttribute.cs
- CodeSnippetCompileUnit.cs
- IdentityNotMappedException.cs
- CodeNamespaceImportCollection.cs
- FontWeights.cs
- DefinitionBase.cs
- XmlWrappingWriter.cs
- CompressedStack.cs
- TypeElement.cs
- ValueUnavailableException.cs
- _TransmitFileOverlappedAsyncResult.cs
- DecoderNLS.cs
- SecurityUtils.cs
- SoapMessage.cs
- ExpressionList.cs
- CodeAccessPermission.cs
- _RequestCacheProtocol.cs
- HtmlTableCell.cs
- BStrWrapper.cs
- ValidationHelper.cs
- DataGridViewRowCollection.cs
- Validator.cs
- PaperSize.cs
- ApplicationDirectoryMembershipCondition.cs
- OracleString.cs
- UpdateCommand.cs
- AlphabeticalEnumConverter.cs
- MediaCommands.cs
- DeploymentExceptionMapper.cs
- ExclusiveCanonicalizationTransform.cs
- ContextMarshalException.cs
- XhtmlBasicPanelAdapter.cs
- DesignerDataTable.cs
- WebServiceFaultDesigner.cs
- QilList.cs
- OperationContext.cs
- PrePrepareMethodAttribute.cs
- WebRequest.cs
- ConvertBinder.cs
- CurrentChangingEventManager.cs
- HScrollProperties.cs
- DateTimeOffsetStorage.cs
- WebRequestModuleElement.cs
- NodeFunctions.cs
- _SslSessionsCache.cs
- BitmapEffectInputData.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ClassicBorderDecorator.cs
- WindowsTooltip.cs
- InputBinder.cs
- BlurEffect.cs
- Config.cs
- ControlAdapter.cs
- ScrollPattern.cs
- FilteredSchemaElementLookUpTable.cs
- RevocationPoint.cs
- XmlSchemaAny.cs
- ComboBoxRenderer.cs
- ErrorFormatter.cs
- ConfigurationPropertyAttribute.cs
- EventLogReader.cs
- Message.cs
- HyperLinkColumn.cs
- KerberosReceiverSecurityToken.cs
- MailWebEventProvider.cs
- RtfNavigator.cs
- WebPartCollection.cs
- SpecialNameAttribute.cs
- ClientProxyGenerator.cs
- WindowsIdentity.cs
- NonParentingControl.cs
- TriggerCollection.cs
- MonitorWrapper.cs
- GotoExpression.cs
- FrameworkElementAutomationPeer.cs
- SymmetricSecurityBindingElement.cs