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
- OdbcCommand.cs
- ACE.cs
- PropertyEntry.cs
- SecurityUtils.cs
- WinFormsUtils.cs
- FillBehavior.cs
- ZipIOExtraField.cs
- UpdateProgress.cs
- ButtonBaseAdapter.cs
- PointConverter.cs
- _NetRes.cs
- ListViewItemEventArgs.cs
- SelectedDatesCollection.cs
- FixedTextView.cs
- SystemUdpStatistics.cs
- LabelLiteral.cs
- WindowHideOrCloseTracker.cs
- Bidi.cs
- RootBrowserWindowProxy.cs
- MouseBinding.cs
- SessionEndingEventArgs.cs
- ImageMetadata.cs
- AppSettingsExpressionEditor.cs
- RichTextBoxConstants.cs
- IISUnsafeMethods.cs
- StateMachineDesignerPaint.cs
- Sequence.cs
- Menu.cs
- StdValidatorsAndConverters.cs
- NetworkCredential.cs
- OracleBinary.cs
- RawStylusSystemGestureInputReport.cs
- IdentityModelDictionary.cs
- QuaternionAnimation.cs
- IISUnsafeMethods.cs
- SafeNativeMethods.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Dictionary.cs
- PageCache.cs
- TreeViewImageIndexConverter.cs
- PrintPreviewDialog.cs
- OletxVolatileEnlistment.cs
- DataGridViewRowCollection.cs
- DynamicPropertyHolder.cs
- AppSettingsReader.cs
- Registry.cs
- Item.cs
- UIElementParagraph.cs
- ADMembershipUser.cs
- SqlWebEventProvider.cs
- UnsafeNativeMethods.cs
- IxmlLineInfo.cs
- XPathAxisIterator.cs
- CfgArc.cs
- SqlBuffer.cs
- TreeViewEvent.cs
- TemplatePropertyEntry.cs
- TransactionFlowProperty.cs
- SQLSingleStorage.cs
- InlineCollection.cs
- ProtocolReflector.cs
- DependencyPropertyHelper.cs
- DefaultSection.cs
- SerialReceived.cs
- XDeferredAxisSource.cs
- EntityDataSourceChangingEventArgs.cs
- ProjectionCamera.cs
- WebPartMenuStyle.cs
- ConfigXmlWhitespace.cs
- returneventsaver.cs
- TdsEnums.cs
- StringArrayConverter.cs
- InputBindingCollection.cs
- ValidatorUtils.cs
- KnownIds.cs
- DesignerTransaction.cs
- ExtractCollection.cs
- MessageDescription.cs
- SoapReflectionImporter.cs
- ResponseBodyWriter.cs
- DelegatingTypeDescriptionProvider.cs
- FormViewInsertedEventArgs.cs
- CompilerScopeManager.cs
- LocalizationComments.cs
- QilInvokeLateBound.cs
- CopyCodeAction.cs
- StateFinalizationActivity.cs
- PointLight.cs
- SemanticValue.cs
- ResourceProperty.cs
- CacheDependency.cs
- CryptoKeySecurity.cs
- UIElementHelper.cs
- BooleanFunctions.cs
- ButtonPopupAdapter.cs
- ZoomPercentageConverter.cs
- DrawItemEvent.cs
- XmlHelper.cs
- TextRunProperties.cs
- COMException.cs