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
- _ChunkParse.cs
- XPathDocumentIterator.cs
- TextContainer.cs
- CqlIdentifiers.cs
- UnauthorizedAccessException.cs
- ElapsedEventArgs.cs
- WebControl.cs
- DataErrorValidationRule.cs
- HttpWriter.cs
- ImageClickEventArgs.cs
- IxmlLineInfo.cs
- AsyncCompletedEventArgs.cs
- WS2007FederationHttpBinding.cs
- Keywords.cs
- RunInstallerAttribute.cs
- CodeTypeConstructor.cs
- GetPageNumberCompletedEventArgs.cs
- CodeVariableReferenceExpression.cs
- TableRowCollection.cs
- HtmlValidationSummaryAdapter.cs
- CompositionTarget.cs
- ItemChangedEventArgs.cs
- StateManagedCollection.cs
- ToolZoneDesigner.cs
- HttpContext.cs
- RegexGroup.cs
- ExternalCalls.cs
- GradientSpreadMethodValidation.cs
- UpdateManifestForBrowserApplication.cs
- Converter.cs
- ConfigurationSchemaErrors.cs
- TextContainerChangeEventArgs.cs
- PageResolution.cs
- EnumUnknown.cs
- ProvidePropertyAttribute.cs
- XmlDocumentViewSchema.cs
- HandlerBase.cs
- EntityConnection.cs
- WorkflowMessageEventHandler.cs
- CodeIdentifier.cs
- OTFRasterizer.cs
- TextPointerBase.cs
- PaginationProgressEventArgs.cs
- securestring.cs
- HttpModuleActionCollection.cs
- ApplicationBuildProvider.cs
- CodeConditionStatement.cs
- ControlUtil.cs
- PseudoWebRequest.cs
- DeviceContexts.cs
- CompensateDesigner.cs
- MruCache.cs
- AppendHelper.cs
- CloudCollection.cs
- DateTimeUtil.cs
- SharedPersonalizationStateInfo.cs
- CannotUnloadAppDomainException.cs
- RecordConverter.cs
- TabletDevice.cs
- ForeignConstraint.cs
- Slider.cs
- Gdiplus.cs
- OdbcCommandBuilder.cs
- TerminatorSinks.cs
- HashStream.cs
- Model3D.cs
- ColorContextHelper.cs
- CollectionViewGroup.cs
- ConnectionStringSettingsCollection.cs
- InputLanguageEventArgs.cs
- PropertyDescriptorComparer.cs
- RowBinding.cs
- TransformProviderWrapper.cs
- SafeNativeMethodsOther.cs
- SqlIdentifier.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DBDataPermission.cs
- DomNameTable.cs
- StyleModeStack.cs
- GC.cs
- XmlBinaryReader.cs
- HttpClientCertificate.cs
- XamlHostingConfiguration.cs
- WmlLabelAdapter.cs
- DiffuseMaterial.cs
- TextParaClient.cs
- HtmlInputFile.cs
- NamespaceQuery.cs
- SmtpFailedRecipientsException.cs
- BaseCodePageEncoding.cs
- TextSelection.cs
- SemanticBasicElement.cs
- ElementFactory.cs
- TimeSpanSecondsConverter.cs
- DESCryptoServiceProvider.cs
- DecoderFallback.cs
- ApplicationManager.cs
- EngineSiteSapi.cs
- Message.cs
- SetMemberBinder.cs