Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequestResizeEvent.cs
- EntityDataReader.cs
- InvalidProgramException.cs
- TaiwanLunisolarCalendar.cs
- PaintEvent.cs
- MemoryPressure.cs
- MasterPageParser.cs
- GPStream.cs
- TreeViewImageKeyConverter.cs
- SplitterPanelDesigner.cs
- FileUpload.cs
- ListSortDescriptionCollection.cs
- ByteStreamGeometryContext.cs
- ScalarOps.cs
- DataGridState.cs
- InternalTransaction.cs
- BodyGlyph.cs
- BoolExpression.cs
- InvalidDataContractException.cs
- WmlValidationSummaryAdapter.cs
- NativeMethods.cs
- Annotation.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- SqlConnectionString.cs
- IdentityReference.cs
- Int32CollectionConverter.cs
- XmlCharCheckingWriter.cs
- Point3DCollectionConverter.cs
- DataObjectPastingEventArgs.cs
- BlockExpression.cs
- MultiDataTrigger.cs
- ObsoleteAttribute.cs
- FrameworkTextComposition.cs
- sitestring.cs
- CommandHelper.cs
- FontTypeConverter.cs
- Point3DAnimationBase.cs
- Boolean.cs
- PropertyKey.cs
- MenuAutomationPeer.cs
- WebPartCatalogCloseVerb.cs
- SystemInfo.cs
- ListDesigner.cs
- AssemblyBuilder.cs
- DrawListViewColumnHeaderEventArgs.cs
- TryLoadRunnableWorkflowCommand.cs
- oledbmetadatacollectionnames.cs
- SqlNotificationRequest.cs
- DataListCommandEventArgs.cs
- PackWebResponse.cs
- FieldToken.cs
- Route.cs
- DataGridTextBoxColumn.cs
- CodePageUtils.cs
- Control.cs
- CheckedListBox.cs
- TypeDescriptionProviderAttribute.cs
- InlineObject.cs
- AccessDataSource.cs
- StringAttributeCollection.cs
- DetailsViewDeleteEventArgs.cs
- Rotation3D.cs
- CoTaskMemHandle.cs
- TiffBitmapDecoder.cs
- DeclaredTypeValidator.cs
- CodeAssignStatement.cs
- DefaultValidator.cs
- MimePart.cs
- ThicknessAnimation.cs
- VirtualPath.cs
- RuntimeIdentifierPropertyAttribute.cs
- MessageQueue.cs
- CompilationSection.cs
- XmlCompatibilityReader.cs
- FormsIdentity.cs
- WebServiceEnumData.cs
- WebBrowserContainer.cs
- AtomContentProperty.cs
- TableAdapterManagerGenerator.cs
- ListViewDeleteEventArgs.cs
- StringCollection.cs
- XmlSerializableReader.cs
- ServiceObjectContainer.cs
- MultiView.cs
- DetailsViewDeletedEventArgs.cs
- MethodMessage.cs
- HelloMessageApril2005.cs
- XmlStreamStore.cs
- MarkupWriter.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- Frame.cs
- OutputCacheSection.cs
- DESCryptoServiceProvider.cs
- IntSecurity.cs
- PropertyToken.cs
- SizeLimitedCache.cs
- AppDomainAttributes.cs
- RangeValuePatternIdentifiers.cs
- SessionIDManager.cs
- BitmapEffectGeneralTransform.cs