Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / MethodToken.cs / 1305376 / MethodToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MethodToken ** **[....] ** ** ** Purpose: Represents a Method to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct MethodToken { public static readonly MethodToken Empty = new MethodToken(); internal int m_method; internal MethodToken(int str) { m_method=str; } public int Token { get { return m_method; } } public override int GetHashCode() { return m_method; } public override bool Equals(Object obj) { if (obj is MethodToken) return Equals((MethodToken)obj); else return false; } public bool Equals(MethodToken obj) { return obj.m_method == m_method; } public static bool operator ==(MethodToken a, MethodToken b) { return a.Equals(b); } public static bool operator !=(MethodToken a, MethodToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MethodToken ** **[....] ** ** ** Purpose: Represents a Method to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct MethodToken { public static readonly MethodToken Empty = new MethodToken(); internal int m_method; internal MethodToken(int str) { m_method=str; } public int Token { get { return m_method; } } public override int GetHashCode() { return m_method; } public override bool Equals(Object obj) { if (obj is MethodToken) return Equals((MethodToken)obj); else return false; } public bool Equals(MethodToken obj) { return obj.m_method == m_method; } public static bool operator ==(MethodToken a, MethodToken b) { return a.Equals(b); } public static bool operator !=(MethodToken a, MethodToken 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
- SafeRegistryHandle.cs
- DoubleLinkList.cs
- Message.cs
- RuntimeComponentFilter.cs
- UserControlBuildProvider.cs
- WebPartCatalogAddVerb.cs
- UrlParameterReader.cs
- DataGridCell.cs
- MetadataFile.cs
- AspNetPartialTrustHelpers.cs
- DSASignatureFormatter.cs
- WebPartExportVerb.cs
- TrackingServices.cs
- RequestTimeoutManager.cs
- SimpleMailWebEventProvider.cs
- ConfigurationCollectionAttribute.cs
- ScrollBarAutomationPeer.cs
- MemberMaps.cs
- mediaclock.cs
- translator.cs
- _ScatterGatherBuffers.cs
- RestClientProxyHandler.cs
- InlineCollection.cs
- MouseButton.cs
- TreeWalker.cs
- MenuItem.cs
- DataGridViewColumnHeaderCell.cs
- GregorianCalendar.cs
- RadioButtonAutomationPeer.cs
- WaveHeader.cs
- SchemaElement.cs
- ListParagraph.cs
- Size.cs
- exports.cs
- DbUpdateCommandTree.cs
- SystemIPGlobalStatistics.cs
- Point.cs
- VoiceChangeEventArgs.cs
- IisHelper.cs
- PrivilegedConfigurationManager.cs
- SID.cs
- RMEnrollmentPage3.cs
- TabItem.cs
- PatternMatcher.cs
- OLEDB_Util.cs
- QueryCacheEntry.cs
- DeclarativeCatalogPart.cs
- HtmlPageAdapter.cs
- XmlSchemaIdentityConstraint.cs
- TextChange.cs
- DataReceivedEventArgs.cs
- InputBuffer.cs
- AsyncCompletedEventArgs.cs
- PtsPage.cs
- WebPartEditVerb.cs
- SqlDelegatedTransaction.cs
- AdPostCacheSubstitution.cs
- ActivityCodeDomSerializationManager.cs
- WindowsSspiNegotiation.cs
- BindingExpressionBase.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ObjectStateManagerMetadata.cs
- CompositeActivityTypeDescriptorProvider.cs
- EntityDesignerBuildProvider.cs
- CommonDialog.cs
- AssemblyNameProxy.cs
- GrowingArray.cs
- SchemaImporter.cs
- ProtocolViolationException.cs
- __Filters.cs
- SelectionHighlightInfo.cs
- RectConverter.cs
- SplitterCancelEvent.cs
- DataBoundControl.cs
- XPathExpr.cs
- DbCommandTree.cs
- DataGridViewTextBoxCell.cs
- UIElementPropertyUndoUnit.cs
- WorkerRequest.cs
- RegistryDataKey.cs
- Point3DKeyFrameCollection.cs
- QueryContext.cs
- COM2ExtendedTypeConverter.cs
- Image.cs
- AssemblyCache.cs
- EmissiveMaterial.cs
- WorkingDirectoryEditor.cs
- ServiceHostFactory.cs
- UnsafeNativeMethods.cs
- ScalarRestriction.cs
- Command.cs
- TextRunCacheImp.cs
- GridEntry.cs
- BaseParagraph.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DataGridViewCellEventArgs.cs
- DataControlFieldCollection.cs
- ClassGenerator.cs
- CompoundFileReference.cs
- IssuedTokenClientElement.cs