Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CaseStatementSlot.cs
- ValidationSummary.cs
- Wildcard.cs
- SafePointer.cs
- NavigationEventArgs.cs
- ArgIterator.cs
- StyleConverter.cs
- ConnectionManagementElementCollection.cs
- PenLineCapValidation.cs
- TypeSystemProvider.cs
- ExtendedProtectionPolicy.cs
- WebEventCodes.cs
- ProviderSettings.cs
- UIntPtr.cs
- ResourceContainerWrapper.cs
- StateFinalizationActivity.cs
- sitestring.cs
- LassoHelper.cs
- _ListenerAsyncResult.cs
- ChunkedMemoryStream.cs
- Track.cs
- BitmapPalette.cs
- FontSourceCollection.cs
- BuilderPropertyEntry.cs
- ECDiffieHellmanCngPublicKey.cs
- SafeNativeMethods.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Pipe.cs
- StylusPoint.cs
- ServerIdentity.cs
- GraphicsState.cs
- ThicknessAnimationUsingKeyFrames.cs
- XmlEncodedRawTextWriter.cs
- ResourceFallbackManager.cs
- SymDocumentType.cs
- SemanticResolver.cs
- FixedPosition.cs
- DrawingDrawingContext.cs
- DataGridBoolColumn.cs
- RootProfilePropertySettingsCollection.cs
- XmlEnumAttribute.cs
- AppDomainManager.cs
- NTAccount.cs
- TableLayoutPanel.cs
- ImageField.cs
- Registry.cs
- ContractCodeDomInfo.cs
- TimeZoneInfo.cs
- TemplatedWizardStep.cs
- EntityDataSourceQueryBuilder.cs
- SqlException.cs
- SchemaConstraints.cs
- DebugController.cs
- SurrogateEncoder.cs
- HttpResponse.cs
- RewritingValidator.cs
- DownloadProgressEventArgs.cs
- GacUtil.cs
- PerformanceCounterPermissionAttribute.cs
- SingleTagSectionHandler.cs
- HtmlInputHidden.cs
- ObfuscationAttribute.cs
- DynamicControlParameter.cs
- DirectoryInfo.cs
- DbModificationClause.cs
- RadioButtonAutomationPeer.cs
- HandoffBehavior.cs
- UnsafeNativeMethods.cs
- ForeignKeyFactory.cs
- OleDbTransaction.cs
- XmlSchemaSimpleTypeUnion.cs
- DeviceContext2.cs
- CodeEntryPointMethod.cs
- XmlSignificantWhitespace.cs
- UnsafeNativeMethods.cs
- SiblingIterators.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- linebase.cs
- RowsCopiedEventArgs.cs
- AssociationSetMetadata.cs
- _NTAuthentication.cs
- SqlWebEventProvider.cs
- ParamArrayAttribute.cs
- Application.cs
- ValidationErrorCollection.cs
- LabelExpression.cs
- Point3DKeyFrameCollection.cs
- OrthographicCamera.cs
- PrinterSettings.cs
- BindingCollection.cs
- GraphicsContext.cs
- ParameterCollection.cs
- TextEndOfSegment.cs
- HitTestParameters.cs
- Vector3DValueSerializer.cs
- TypeBuilderInstantiation.cs
- OperandQuery.cs
- TextTreeInsertUndoUnit.cs
- securitycriticaldataClass.cs
- LicenseContext.cs