Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Reflection / Emit / EventToken.cs / 1 / EventToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventToken ** ** ** Propertybuilder is for client to define properties for a class ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct EventToken { public static readonly EventToken Empty = new EventToken(); internal int m_event; internal EventToken(int str) { m_event=str; } public int Token { get { return m_event; } } public override int GetHashCode() { return m_event; } public override bool Equals(Object obj) { if (obj is EventToken) return Equals((EventToken)obj); else return false; } public bool Equals(EventToken obj) { return obj.m_event == m_event; } public static bool operator ==(EventToken a, EventToken b) { return a.Equals(b); } public static bool operator !=(EventToken a, EventToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventToken ** ** ** Propertybuilder is for client to define properties for a class ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct EventToken { public static readonly EventToken Empty = new EventToken(); internal int m_event; internal EventToken(int str) { m_event=str; } public int Token { get { return m_event; } } public override int GetHashCode() { return m_event; } public override bool Equals(Object obj) { if (obj is EventToken) return Equals((EventToken)obj); else return false; } public bool Equals(EventToken obj) { return obj.m_event == m_event; } public static bool operator ==(EventToken a, EventToken b) { return a.Equals(b); } public static bool operator !=(EventToken a, EventToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmbeddedMailObjectsCollection.cs
- XamlStyleSerializer.cs
- DataBindingExpressionBuilder.cs
- AuthenticationModuleElementCollection.cs
- HtmlInputControl.cs
- BadImageFormatException.cs
- IMembershipProvider.cs
- StorageSetMapping.cs
- XPathAxisIterator.cs
- Pointer.cs
- MediaElementAutomationPeer.cs
- RegionInfo.cs
- SynchronizationFilter.cs
- Geometry3D.cs
- CustomTypeDescriptor.cs
- IOException.cs
- Setter.cs
- HtmlFormWrapper.cs
- ReferencedCollectionType.cs
- WebBrowsableAttribute.cs
- SharedPersonalizationStateInfo.cs
- DoubleLinkList.cs
- SecureStringHasher.cs
- SqlFactory.cs
- CTreeGenerator.cs
- VolatileEnlistmentMultiplexing.cs
- RectIndependentAnimationStorage.cs
- COM2Enum.cs
- FileBasedResourceGroveler.cs
- ObservableDictionary.cs
- TypeLoadException.cs
- Main.cs
- Mouse.cs
- TakeQueryOptionExpression.cs
- TemplatedMailWebEventProvider.cs
- CompressEmulationStream.cs
- RuleAction.cs
- ColorConverter.cs
- FederatedMessageSecurityOverHttpElement.cs
- SecurityPermission.cs
- Msmq3PoisonHandler.cs
- PrintDialog.cs
- VideoDrawing.cs
- PagedDataSource.cs
- CurrentChangedEventManager.cs
- SoapCodeExporter.cs
- ItemContainerGenerator.cs
- LinearQuaternionKeyFrame.cs
- StringCollection.cs
- ControlEvent.cs
- MouseGestureValueSerializer.cs
- DataGridViewToolTip.cs
- SHA384CryptoServiceProvider.cs
- PlatformCulture.cs
- List.cs
- Odbc32.cs
- HostingEnvironment.cs
- XsltSettings.cs
- PresentationSource.cs
- DrawingContext.cs
- MessageDispatch.cs
- RemotingClientProxy.cs
- XmlUnspecifiedAttribute.cs
- VariableBinder.cs
- Image.cs
- BitmapSizeOptions.cs
- DetailsViewCommandEventArgs.cs
- ResponseStream.cs
- RtfControlWordInfo.cs
- ButtonBase.cs
- DeadCharTextComposition.cs
- DataGridColumnCollection.cs
- WebPart.cs
- ListDictionary.cs
- CompilationLock.cs
- GraphicsContext.cs
- CommonGetThemePartSize.cs
- XPathAncestorQuery.cs
- DecimalAnimationUsingKeyFrames.cs
- SqlDataSourceStatusEventArgs.cs
- ControlValuePropertyAttribute.cs
- Vector3dCollection.cs
- CardSpaceException.cs
- ReversePositionQuery.cs
- EventManager.cs
- HtmlTernaryTree.cs
- SoapHeaderException.cs
- StringDictionary.cs
- ResXDataNode.cs
- DropShadowEffect.cs
- QfeChecker.cs
- BindingFormattingDialog.cs
- DbParameterCollectionHelper.cs
- PackageDigitalSignature.cs
- ImageBrush.cs
- UnsafeNativeMethods.cs
- PageHandlerFactory.cs
- MorphHelpers.cs
- ControlBuilderAttribute.cs
- Subset.cs