Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XmlAttributeAttribute.cs
- RotationValidation.cs
- EventBindingService.cs
- SHA512.cs
- SrgsText.cs
- FtpCachePolicyElement.cs
- ThumbAutomationPeer.cs
- Stack.cs
- ConfigurationErrorsException.cs
- VersionedStream.cs
- OneOfTypeConst.cs
- QuaternionAnimationBase.cs
- StickyNote.cs
- CultureInfoConverter.cs
- ValidationHelper.cs
- ConnectionInterfaceCollection.cs
- HandlerFactoryWrapper.cs
- ModifyActivitiesPropertyDescriptor.cs
- XhtmlBasicPanelAdapter.cs
- ScriptingSectionGroup.cs
- CatalogPartChrome.cs
- TlsnegoTokenProvider.cs
- MessageAction.cs
- ClientScriptManagerWrapper.cs
- MappingItemCollection.cs
- PermissionRequestEvidence.cs
- PanelStyle.cs
- RemoteDebugger.cs
- MenuStrip.cs
- ExpressionBuilderContext.cs
- ProjectionPlan.cs
- StringDictionaryEditor.cs
- BufferAllocator.cs
- COM2Enum.cs
- TraceXPathNavigator.cs
- documentsequencetextview.cs
- RotateTransform.cs
- ImageMetadata.cs
- DataGridViewImageColumn.cs
- StylusEditingBehavior.cs
- AffineTransform3D.cs
- Vector3DAnimationBase.cs
- PrtCap_Base.cs
- SSmlParser.cs
- XmlQueryStaticData.cs
- PropertyRef.cs
- ViewBox.cs
- wgx_commands.cs
- XmlSignificantWhitespace.cs
- Subordinate.cs
- HandleCollector.cs
- DataGridTemplateColumn.cs
- ProcessThreadCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- MatrixCamera.cs
- RunWorkerCompletedEventArgs.cs
- dsa.cs
- SymbolEqualComparer.cs
- SqlNode.cs
- Int32AnimationUsingKeyFrames.cs
- EntityException.cs
- LongTypeConverter.cs
- CodeTypeMemberCollection.cs
- ObjectComplexPropertyMapping.cs
- ClientBuildManagerCallback.cs
- Pipe.cs
- TypeReference.cs
- ImmutableObjectAttribute.cs
- Span.cs
- SQLMembershipProvider.cs
- TextBox.cs
- FileSystemInfo.cs
- CompareValidator.cs
- TrustManagerPromptUI.cs
- ValidatorCompatibilityHelper.cs
- ResXResourceWriter.cs
- QuaternionAnimationBase.cs
- XmlNavigatorStack.cs
- Ipv6Element.cs
- SqlBulkCopyColumnMapping.cs
- Vector3dCollection.cs
- Highlights.cs
- ThrowHelper.cs
- Propagator.Evaluator.cs
- SimpleTypeResolver.cs
- ExtentKey.cs
- TreeNode.cs
- MetafileHeader.cs
- XPathAncestorIterator.cs
- NavigateEvent.cs
- DataBindingExpressionBuilder.cs
- StreamInfo.cs
- DataMemberConverter.cs
- AttributeCollection.cs
- ChannelServices.cs
- StringKeyFrameCollection.cs
- HostingEnvironment.cs
- DoWorkEventArgs.cs
- ListViewInsertEventArgs.cs
- DeadCharTextComposition.cs