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
- TextParaLineResult.cs
- WindowsListViewItemCheckBox.cs
- GenericQueueSurrogate.cs
- NotificationContext.cs
- Rect3DConverter.cs
- BitmapMetadataEnumerator.cs
- KeyedQueue.cs
- XPathConvert.cs
- Registration.cs
- XmlSerializableWriter.cs
- RoutedUICommand.cs
- OSFeature.cs
- TextEditorCharacters.cs
- QuaternionAnimationUsingKeyFrames.cs
- SamlAuthorizationDecisionClaimResource.cs
- QueueProcessor.cs
- RoleExceptions.cs
- PersonalizationDictionary.cs
- DataGridViewRowPostPaintEventArgs.cs
- PropertyMap.cs
- AttributeConverter.cs
- SocketInformation.cs
- ComNativeDescriptor.cs
- SessionStateUtil.cs
- ParseElement.cs
- SoapReflectionImporter.cs
- HandleCollector.cs
- UnsafeNativeMethods.cs
- PointLightBase.cs
- PenLineCapValidation.cs
- DrawingGroup.cs
- DataServiceQueryException.cs
- DateTimeOffsetStorage.cs
- MemoryStream.cs
- DtrList.cs
- SystemWebSectionGroup.cs
- ConfigLoader.cs
- Attributes.cs
- DesignOnlyAttribute.cs
- CaseCqlBlock.cs
- ImportCatalogPart.cs
- UInt32Converter.cs
- ManipulationPivot.cs
- PositiveTimeSpanValidatorAttribute.cs
- MultiDataTrigger.cs
- SpecularMaterial.cs
- Serializer.cs
- SHA512.cs
- RemotingAttributes.cs
- ManipulationDelta.cs
- PeerPresenceInfo.cs
- TileModeValidation.cs
- ByteAnimationUsingKeyFrames.cs
- TypeValidationEventArgs.cs
- StringUtil.cs
- input.cs
- SafePipeHandle.cs
- DomNameTable.cs
- StickyNoteContentControl.cs
- ElementHostAutomationPeer.cs
- PeerCollaboration.cs
- SplitContainer.cs
- CapabilitiesPattern.cs
- StateBag.cs
- RootAction.cs
- ImageAttributes.cs
- InternalsVisibleToAttribute.cs
- TimeStampChecker.cs
- ListBase.cs
- ConfigXmlWhitespace.cs
- LinearGradientBrush.cs
- ClientRequest.cs
- ResXResourceSet.cs
- ComplusTypeValidator.cs
- BindingCollection.cs
- DBCommandBuilder.cs
- base64Transforms.cs
- ItemChangedEventArgs.cs
- WebBrowserPermission.cs
- DataControlImageButton.cs
- EventMap.cs
- IssuanceLicense.cs
- SoapAttributeAttribute.cs
- DockPanel.cs
- SafeSystemMetrics.cs
- DataContract.cs
- TraceProvider.cs
- OleDbTransaction.cs
- WebPartEditorOkVerb.cs
- XmlSerializerFactory.cs
- GeometryHitTestResult.cs
- AxDesigner.cs
- BuildProvider.cs
- CallbackDebugElement.cs
- ScriptControl.cs
- XmlElementAttributes.cs
- TrustSection.cs
- PeerApplication.cs
- ListViewSortEventArgs.cs
- LocatorBase.cs