Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / EventToken.cs / 1305376 / 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
- AssemblyCache.cs
- BinaryObjectInfo.cs
- Encoder.cs
- ToolStripHighContrastRenderer.cs
- DataGridViewBand.cs
- ListBoxChrome.cs
- MaskDescriptor.cs
- DetailsViewInsertedEventArgs.cs
- OutOfMemoryException.cs
- TablePattern.cs
- DataGridViewHitTestInfo.cs
- XDRSchema.cs
- HTTPRemotingHandler.cs
- WebEventTraceProvider.cs
- ValueChangedEventManager.cs
- TypedDatasetGenerator.cs
- PrivilegeNotHeldException.cs
- EditorBrowsableAttribute.cs
- NativeMethods.cs
- CollectionBase.cs
- NodeLabelEditEvent.cs
- ListDictionaryInternal.cs
- DataGridDetailsPresenter.cs
- NextPreviousPagerField.cs
- CodeExporter.cs
- ProcessThread.cs
- AnonymousIdentificationModule.cs
- WebPartRestoreVerb.cs
- ContextBase.cs
- CheckBox.cs
- TdsEnums.cs
- RangeValidator.cs
- InkCanvasFeedbackAdorner.cs
- FuncTypeConverter.cs
- DateRangeEvent.cs
- MethodExpression.cs
- PreservationFileWriter.cs
- ToolBar.cs
- ContextMenuStrip.cs
- RuleSettingsCollection.cs
- Events.cs
- ToolStripDropDownItem.cs
- EntityDesignPluralizationHandler.cs
- StylusPointPropertyInfo.cs
- BinaryMessageFormatter.cs
- DeliveryStrategy.cs
- XmlElement.cs
- GenericWebPart.cs
- DataKey.cs
- CrossSiteScriptingValidation.cs
- CaseCqlBlock.cs
- GridPattern.cs
- ComponentResourceKeyConverter.cs
- InvalidFilterCriteriaException.cs
- InkCanvasInnerCanvas.cs
- InfoCardSymmetricCrypto.cs
- InteropExecutor.cs
- path.cs
- CqlErrorHelper.cs
- RunInstallerAttribute.cs
- MultiTouchSystemGestureLogic.cs
- Int32Rect.cs
- DrawingImage.cs
- EventLogPermission.cs
- Rule.cs
- PlatformCulture.cs
- TrackingValidationObjectDictionary.cs
- XsdBuilder.cs
- Path.cs
- WebPartCloseVerb.cs
- DataGridViewRowStateChangedEventArgs.cs
- MouseCaptureWithinProperty.cs
- HwndKeyboardInputProvider.cs
- RecognizedAudio.cs
- PackagePart.cs
- GeneralTransform3DGroup.cs
- SetIterators.cs
- RepeaterItemCollection.cs
- QueryExpr.cs
- TransactionWaitAsyncResult.cs
- SqlXmlStorage.cs
- Int64Storage.cs
- StylusPointPropertyId.cs
- MenuTracker.cs
- XPathNodePointer.cs
- WorkflowRuntimeBehavior.cs
- DebuggerAttributes.cs
- XmlDomTextWriter.cs
- WindowsFormsSynchronizationContext.cs
- ButtonChrome.cs
- translator.cs
- Label.cs
- XmlElement.cs
- QilLiteral.cs
- TextModifierScope.cs
- AssemblyResourceLoader.cs
- DBCommandBuilder.cs
- COM2ExtendedTypeConverter.cs
- DecimalConverter.cs
- TraceHandlerErrorFormatter.cs