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
- InvalidTimeZoneException.cs
- TextServicesProperty.cs
- WindowsMenu.cs
- TdsParserHelperClasses.cs
- WebContext.cs
- TypeDescriptionProviderAttribute.cs
- CaseStatementProjectedSlot.cs
- SourceFileBuildProvider.cs
- NameValueFileSectionHandler.cs
- Vector3DIndependentAnimationStorage.cs
- SqlCacheDependency.cs
- WebSysDescriptionAttribute.cs
- codemethodreferenceexpression.cs
- MenuItemAutomationPeer.cs
- ToolStripPanelRenderEventArgs.cs
- DataBindingExpressionBuilder.cs
- WebHttpBindingCollectionElement.cs
- ExtensionQuery.cs
- AuthStoreRoleProvider.cs
- BufferedWebEventProvider.cs
- StateManagedCollection.cs
- KnownColorTable.cs
- PerformanceCounterPermissionEntry.cs
- ObjectDataSourceView.cs
- HttpNamespaceReservationInstallComponent.cs
- WSSecurityXXX2005.cs
- SerializableAttribute.cs
- EffectiveValueEntry.cs
- PrinterSettings.cs
- BitmapSizeOptions.cs
- Splitter.cs
- DirectoryObjectSecurity.cs
- DataComponentNameHandler.cs
- RadialGradientBrush.cs
- WebPartZone.cs
- TiffBitmapEncoder.cs
- Win32KeyboardDevice.cs
- PersonalizationProviderCollection.cs
- OleAutBinder.cs
- PasswordTextNavigator.cs
- GroupAggregateExpr.cs
- RotateTransform.cs
- ResourceExpression.cs
- BitSet.cs
- BuildManager.cs
- SqlInternalConnection.cs
- PropertyIDSet.cs
- SelectionGlyphBase.cs
- CodeObjectCreateExpression.cs
- StylusSystemGestureEventArgs.cs
- DataControlFieldCell.cs
- SQLDouble.cs
- BitmapEffectState.cs
- BitmapCacheBrush.cs
- PeerNameRegistration.cs
- StylusButtonEventArgs.cs
- CollectionChangeEventArgs.cs
- SafeLocalAllocation.cs
- IdnMapping.cs
- assemblycache.cs
- WebPartDescription.cs
- EventListener.cs
- IOThreadTimer.cs
- EUCJPEncoding.cs
- WebPartCatalogAddVerb.cs
- SoapSchemaExporter.cs
- ColumnReorderedEventArgs.cs
- DictionaryMarkupSerializer.cs
- controlskin.cs
- SpinWait.cs
- VerticalAlignConverter.cs
- DiagnosticTraceSource.cs
- PenContexts.cs
- IteratorDescriptor.cs
- GlyphRun.cs
- ToolStripMenuItem.cs
- MediaElementAutomationPeer.cs
- Paragraph.cs
- VarRemapper.cs
- QueryStringHandler.cs
- AttributeSetAction.cs
- AvTraceDetails.cs
- HttpVersion.cs
- AlphaSortedEnumConverter.cs
- NativeMethods.cs
- ImageMapEventArgs.cs
- WorkflowViewElement.cs
- IsolatedStorage.cs
- LiteralDesigner.cs
- EditCommandColumn.cs
- Emitter.cs
- FloaterParagraph.cs
- CollectionViewGroup.cs
- DecoderNLS.cs
- LessThanOrEqual.cs
- Profiler.cs
- MetaModel.cs
- ObjectReaderCompiler.cs
- AssertFilter.cs
- Attributes.cs