Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Input.cs
- BaseUriWithWildcard.cs
- SafeCryptoHandles.cs
- TouchPoint.cs
- XPathDocumentNavigator.cs
- Mapping.cs
- Region.cs
- CommandBinding.cs
- WebControl.cs
- RtType.cs
- OutputCacheSettingsSection.cs
- TablePattern.cs
- Update.cs
- SharedRuntimeState.cs
- Binding.cs
- SQlBooleanStorage.cs
- HasActivatableWorkflowEvent.cs
- Annotation.cs
- CompositeTypefaceMetrics.cs
- GridViewPageEventArgs.cs
- ComplexPropertyEntry.cs
- IdentityReference.cs
- ErrorLog.cs
- SqlDataSourceAdvancedOptionsForm.cs
- NamedPermissionSet.cs
- XmlSchemaComplexContentRestriction.cs
- CodeBlockBuilder.cs
- DBSqlParserColumnCollection.cs
- PropertyPathWorker.cs
- DesignerLoader.cs
- _NegoState.cs
- ConfigXmlComment.cs
- LinqDataSourceStatusEventArgs.cs
- RootBuilder.cs
- Parameter.cs
- DocumentEventArgs.cs
- IntranetCredentialPolicy.cs
- WebPartEventArgs.cs
- ListBindingHelper.cs
- FileSystemEventArgs.cs
- DataSourceView.cs
- IntSecurity.cs
- SatelliteContractVersionAttribute.cs
- DataServiceProcessingPipeline.cs
- Viewport3DAutomationPeer.cs
- ECDsaCng.cs
- PropertyIDSet.cs
- PropertyEmitter.cs
- IPGlobalProperties.cs
- DataComponentMethodGenerator.cs
- ApplicationTrust.cs
- UpDownEvent.cs
- EntityModelBuildProvider.cs
- XslException.cs
- XPathNodeInfoAtom.cs
- FormViewInsertEventArgs.cs
- BuildResultCache.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- MobileTemplatedControlDesigner.cs
- TreeWalker.cs
- DrawingVisualDrawingContext.cs
- ProcessHostConfigUtils.cs
- LexicalChunk.cs
- DWriteFactory.cs
- CompositeFontInfo.cs
- WsdlInspector.cs
- MD5HashHelper.cs
- DataBoundLiteralControl.cs
- WindowsTab.cs
- DataGridViewCellStyle.cs
- Command.cs
- NativeActivityAbortContext.cs
- ApplicationServicesHostFactory.cs
- CollectionViewSource.cs
- SigningCredentials.cs
- TreeView.cs
- ExpressionSelection.cs
- KeyTime.cs
- Table.cs
- ValidateNames.cs
- NamedObject.cs
- FileUpload.cs
- Journaling.cs
- BrowsableAttribute.cs
- WebDisplayNameAttribute.cs
- URLAttribute.cs
- XmlText.cs
- ExceptionTranslationTable.cs
- LinkLabelLinkClickedEvent.cs
- WindowsAltTab.cs
- RouteItem.cs
- RegistryKey.cs
- DeploymentSectionCache.cs
- SplashScreen.cs
- SafeFileMappingHandle.cs
- Expression.DebuggerProxy.cs
- TextServicesManager.cs
- arc.cs
- Metadata.cs
- ByteAnimationBase.cs