Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Reflection / Emit / MethodToken.cs / 1 / 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
- WebServiceEnumData.cs
- DecoderExceptionFallback.cs
- dataSvcMapFileLoader.cs
- SchemaTypeEmitter.cs
- ShaperBuffers.cs
- GridViewRowPresenterBase.cs
- MasterPageBuildProvider.cs
- TextTreeExtractElementUndoUnit.cs
- BindingCompleteEventArgs.cs
- IOThreadScheduler.cs
- OneOfConst.cs
- ProviderCommandInfoUtils.cs
- ConfigXmlElement.cs
- PlaceHolder.cs
- CatalogPartCollection.cs
- CorrelationService.cs
- CapabilitiesRule.cs
- ObjectAnimationBase.cs
- ReturnValue.cs
- documentsequencetextview.cs
- DetailsViewPageEventArgs.cs
- Section.cs
- AddInIpcChannel.cs
- EntitySqlQueryBuilder.cs
- TemplateColumn.cs
- basevalidator.cs
- FileLogRecordEnumerator.cs
- TransformPattern.cs
- SiteMap.cs
- MethodCallTranslator.cs
- SqlTypesSchemaImporter.cs
- UnlockInstanceAsyncResult.cs
- TextElement.cs
- XmlSchemaGroupRef.cs
- ContractHandle.cs
- ImpersonationContext.cs
- HostSecurityManager.cs
- ProtocolsSection.cs
- FixedSOMLineCollection.cs
- PropertyStore.cs
- TextTrailingWordEllipsis.cs
- SimpleMailWebEventProvider.cs
- ProxyGenerationError.cs
- DataServiceConfiguration.cs
- AsymmetricCryptoHandle.cs
- CodeAttributeDeclarationCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- NativeMethods.cs
- TreeView.cs
- DependencyProperty.cs
- ResourceDescriptionAttribute.cs
- DataGridSortCommandEventArgs.cs
- PackageRelationshipCollection.cs
- XPathNodeList.cs
- UdpDuplexChannel.cs
- VisualStyleRenderer.cs
- DefaultHttpHandler.cs
- List.cs
- Scene3D.cs
- CheckableControlBaseAdapter.cs
- KeyManager.cs
- QuaternionRotation3D.cs
- XamlWriter.cs
- DocumentPageHost.cs
- LambdaCompiler.Binary.cs
- FrameworkObject.cs
- XmlUtf8RawTextWriter.cs
- Scene3D.cs
- SQLResource.cs
- Tuple.cs
- HtmlInputButton.cs
- DataBindingHandlerAttribute.cs
- XmlHierarchicalDataSourceView.cs
- VectorKeyFrameCollection.cs
- Roles.cs
- ArgIterator.cs
- PageContentAsyncResult.cs
- RuntimeConfigLKG.cs
- FunctionMappingTranslator.cs
- DefaultObjectSerializer.cs
- WebPartExportVerb.cs
- InputGestureCollection.cs
- DataReceivedEventArgs.cs
- _HelperAsyncResults.cs
- KeyboardEventArgs.cs
- MenuBindingsEditor.cs
- MissingFieldException.cs
- SafeUserTokenHandle.cs
- BaseCAMarshaler.cs
- GZipDecoder.cs
- DiscoveryExceptionDictionary.cs
- DataTable.cs
- LeaseManager.cs
- EnvironmentPermission.cs
- SpecialFolderEnumConverter.cs
- MaterialGroup.cs
- DocumentXPathNavigator.cs
- TreeNodeCollection.cs
- SafeBitVector32.cs
- FilteredDataSetHelper.cs