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
- RegexCaptureCollection.cs
- WindowsTokenRoleProvider.cs
- LoginView.cs
- DataGridViewRowsAddedEventArgs.cs
- SqlCharStream.cs
- PackagingUtilities.cs
- CurrentChangedEventManager.cs
- FixedBufferAttribute.cs
- GPPOINT.cs
- TextLine.cs
- CookieParameter.cs
- TextProviderWrapper.cs
- FlagsAttribute.cs
- userdatakeys.cs
- HttpClientCertificate.cs
- XmlNamespaceMapping.cs
- InternalDispatchObject.cs
- ButtonFieldBase.cs
- Duration.cs
- SortedList.cs
- GeneralTransformCollection.cs
- CacheRequest.cs
- ParentQuery.cs
- Adorner.cs
- DataGridViewCellValidatingEventArgs.cs
- XmlSchemaInclude.cs
- OleDbInfoMessageEvent.cs
- FontFamily.cs
- TranslateTransform.cs
- AxParameterData.cs
- NCryptSafeHandles.cs
- baseaxisquery.cs
- ReferentialConstraint.cs
- ListViewSortEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- GridViewRow.cs
- RequiredAttributeAttribute.cs
- InternalDispatchObject.cs
- LockedActivityGlyph.cs
- OutputCacheProviderCollection.cs
- Int32Storage.cs
- LifetimeServices.cs
- AssertFilter.cs
- DBSqlParser.cs
- NetStream.cs
- AccessKeyManager.cs
- Regex.cs
- DoubleAnimation.cs
- ContextStack.cs
- FloatAverageAggregationOperator.cs
- HtmlWindowCollection.cs
- HijriCalendar.cs
- ConfigurationSectionGroupCollection.cs
- GridItem.cs
- GeneralTransform3DGroup.cs
- StickyNoteHelper.cs
- XmlNodeChangedEventArgs.cs
- TableProvider.cs
- AttributeProviderAttribute.cs
- ScaleTransform3D.cs
- ServicePoint.cs
- HttpCacheVaryByContentEncodings.cs
- PeerCredential.cs
- QuaternionRotation3D.cs
- ProxyManager.cs
- XPathAxisIterator.cs
- AsyncPostBackErrorEventArgs.cs
- ExtentKey.cs
- FieldNameLookup.cs
- LogReservationCollection.cs
- querybuilder.cs
- RequestCachingSection.cs
- CodeThrowExceptionStatement.cs
- XmlIlTypeHelper.cs
- Matrix3D.cs
- GridViewCommandEventArgs.cs
- SpanIndex.cs
- BookmarkTable.cs
- ObjectDataSourceEventArgs.cs
- DuplexChannel.cs
- CreateParams.cs
- odbcmetadatafactory.cs
- CodeGeneratorOptions.cs
- BuildProviderCollection.cs
- HasCopySemanticsAttribute.cs
- DisplayMemberTemplateSelector.cs
- VisualTarget.cs
- DateTimeSerializationSection.cs
- CurrencyWrapper.cs
- RequestReplyCorrelator.cs
- DataGridTemplateColumn.cs
- HttpResponseInternalBase.cs
- SynchronizedDispatch.cs
- UdpMessageProperty.cs
- PointLight.cs
- Size3DConverter.cs
- UpdateManifestForBrowserApplication.cs
- DefaultSerializationProviderAttribute.cs
- NamespaceQuery.cs