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
- TextParaClient.cs
- GridViewRowCollection.cs
- Point3DAnimation.cs
- SqlServices.cs
- XmlSignificantWhitespace.cs
- complextypematerializer.cs
- SessionState.cs
- ConnectionManagementElementCollection.cs
- SrgsToken.cs
- Int32AnimationUsingKeyFrames.cs
- StorageAssociationSetMapping.cs
- EncodingNLS.cs
- DataBindingExpressionBuilder.cs
- EnvelopedSignatureTransform.cs
- LinkLabelLinkClickedEvent.cs
- Size3DValueSerializer.cs
- RtfNavigator.cs
- SqlConnectionPoolProviderInfo.cs
- HwndKeyboardInputProvider.cs
- securitycriticaldataformultiplegetandset.cs
- TraceLevelStore.cs
- clipboard.cs
- documentsequencetextpointer.cs
- CodeRemoveEventStatement.cs
- LinkClickEvent.cs
- WithParamAction.cs
- XmlLoader.cs
- AssemblyAssociatedContentFileAttribute.cs
- FtpCachePolicyElement.cs
- GroupBox.cs
- TypeNameConverter.cs
- ParentQuery.cs
- VectorAnimationUsingKeyFrames.cs
- EntityConnectionStringBuilderItem.cs
- Config.cs
- FieldBuilder.cs
- KeyGestureValueSerializer.cs
- HorizontalAlignConverter.cs
- XPathAncestorQuery.cs
- WebPartMenuStyle.cs
- PrimitiveXmlSerializers.cs
- Compiler.cs
- FormViewDeleteEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- securestring.cs
- Repeater.cs
- RootBrowserWindow.cs
- mda.cs
- AttachedAnnotation.cs
- __Error.cs
- EditorPart.cs
- VarRefManager.cs
- FilterFactory.cs
- VsPropertyGrid.cs
- EnumValAlphaComparer.cs
- TypedServiceChannelBuilder.cs
- Margins.cs
- HelpProvider.cs
- Int32CollectionConverter.cs
- Size.cs
- Int64Animation.cs
- StylusShape.cs
- RoleManagerSection.cs
- NamedPipeConnectionPoolSettings.cs
- ValueProviderWrapper.cs
- ValidatorCompatibilityHelper.cs
- Logging.cs
- CardSpaceShim.cs
- mediapermission.cs
- DataGridCellsPresenter.cs
- RequestQueue.cs
- SqlLiftIndependentRowExpressions.cs
- TypeSystemProvider.cs
- DoubleConverter.cs
- indexingfiltermarshaler.cs
- GridSplitter.cs
- XmlNodeList.cs
- DataGridLengthConverter.cs
- OpCellTreeNode.cs
- XmlIgnoreAttribute.cs
- Int64Converter.cs
- SafeCryptoHandles.cs
- MetaModel.cs
- DrawListViewItemEventArgs.cs
- SafeNativeMethods.cs
- BamlRecords.cs
- ListCollectionView.cs
- WorkflowMarkupSerializer.cs
- UInt32.cs
- BamlBinaryWriter.cs
- BuilderPropertyEntry.cs
- CanonicalXml.cs
- FormsAuthenticationCredentials.cs
- TextEndOfSegment.cs
- IResourceProvider.cs
- VisualTreeHelper.cs
- NegotiationTokenProvider.cs
- PageClientProxyGenerator.cs
- WebPartAuthorizationEventArgs.cs
- UnsafeNativeMethods.cs