Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- WindowsRegion.cs
- ParserContext.cs
- XpsPackagingPolicy.cs
- DataReceivedEventArgs.cs
- CommandExpr.cs
- ParameterBuilder.cs
- ChangesetResponse.cs
- _DomainName.cs
- SrgsOneOf.cs
- TriggerActionCollection.cs
- ColorConverter.cs
- XmlSerializer.cs
- GroupQuery.cs
- XmlCodeExporter.cs
- DBCommand.cs
- MarkupWriter.cs
- ComponentCollection.cs
- SafeWaitHandle.cs
- StrokeCollection.cs
- RoutedEventArgs.cs
- XmlILTrace.cs
- HtmlInputText.cs
- ObjectContext.cs
- QilGenerator.cs
- CapabilitiesUse.cs
- EmptyEnumerator.cs
- IpcPort.cs
- HtmlLiteralTextAdapter.cs
- BitmapImage.cs
- ProfileProvider.cs
- Config.cs
- Constraint.cs
- StringBlob.cs
- LowerCaseStringConverter.cs
- TransformedBitmap.cs
- LinqDataSource.cs
- ProxyWebPartManager.cs
- SystemTcpConnection.cs
- TextEditorCopyPaste.cs
- ArrayWithOffset.cs
- BaseServiceProvider.cs
- HttpWebRequest.cs
- ManipulationStartedEventArgs.cs
- Rotation3DAnimation.cs
- HashCoreRequest.cs
- Symbol.cs
- XPathNodeHelper.cs
- QueryOutputWriter.cs
- DesignerCategoryAttribute.cs
- Drawing.cs
- ExceptionUtil.cs
- __Error.cs
- IdleTimeoutMonitor.cs
- TextRange.cs
- DataGridCellsPanel.cs
- _PooledStream.cs
- MediaElementAutomationPeer.cs
- AuthenticatingEventArgs.cs
- InvalidOleVariantTypeException.cs
- SqlUtil.cs
- ConnectionInterfaceCollection.cs
- XmlSerializableReader.cs
- UpDownEvent.cs
- SafeViewOfFileHandle.cs
- SizeAnimationUsingKeyFrames.cs
- LayoutUtils.cs
- metadatamappinghashervisitor.cs
- CatalogPartChrome.cs
- QuaternionAnimation.cs
- ObjectPersistData.cs
- PropertyManager.cs
- TemplatingOptionsDialog.cs
- OleDbMetaDataFactory.cs
- RelationshipType.cs
- DownloadProgressEventArgs.cs
- EnumBuilder.cs
- QueryStringParameter.cs
- SqlCommandBuilder.cs
- XmlProcessingInstruction.cs
- Vars.cs
- GregorianCalendar.cs
- XmlnsPrefixAttribute.cs
- TransactionsSectionGroup.cs
- CircleHotSpot.cs
- WindowsPrincipal.cs
- Descriptor.cs
- BaseParaClient.cs
- ZoneMembershipCondition.cs
- ClientConfigurationHost.cs
- GcHandle.cs
- CultureInfoConverter.cs
- PagesSection.cs
- RawStylusInputReport.cs
- DNS.cs
- CodeCommentStatement.cs
- GeometryGroup.cs
- XmlSchemaSimpleType.cs
- printdlgexmarshaler.cs
- SHA1CryptoServiceProvider.cs
- Facet.cs