Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextUtf8RawTextWriter.cs
- TemplateControlParser.cs
- PasswordRecovery.cs
- PresentationAppDomainManager.cs
- XmlMemberMapping.cs
- DataStreamFromComStream.cs
- MatrixTransform.cs
- ItemsPresenter.cs
- ComponentConverter.cs
- UIElementPropertyUndoUnit.cs
- RequestUriProcessor.cs
- EntityProviderFactory.cs
- DataControlCommands.cs
- ContentFilePart.cs
- EntityFrameworkVersions.cs
- Imaging.cs
- DoneReceivingAsyncResult.cs
- SQLMembershipProvider.cs
- ServiceMetadataPublishingElement.cs
- ChameleonKey.cs
- TableLayoutColumnStyleCollection.cs
- SHA1Managed.cs
- PeerPresenceInfo.cs
- PermissionListSet.cs
- Encoder.cs
- Size.cs
- CollectionEditor.cs
- XamlInt32CollectionSerializer.cs
- XmlSchemaNotation.cs
- HwndSource.cs
- FileController.cs
- SymLanguageType.cs
- SettingsBase.cs
- SweepDirectionValidation.cs
- AnnouncementInnerClient11.cs
- Cursors.cs
- HttpRuntime.cs
- ImageIndexConverter.cs
- PersonalizationStateQuery.cs
- SoapMessage.cs
- Simplifier.cs
- CompiledXpathExpr.cs
- FontResourceCache.cs
- CounterSampleCalculator.cs
- GenericAuthenticationEventArgs.cs
- DataRowChangeEvent.cs
- XmlSchemaException.cs
- MissingMethodException.cs
- SecurityResources.cs
- SystemEvents.cs
- EmptyCollection.cs
- DrawingImage.cs
- BaseComponentEditor.cs
- IndentTextWriter.cs
- ValidatingCollection.cs
- Parsers.cs
- InvalidPrinterException.cs
- CoTaskMemHandle.cs
- PerspectiveCamera.cs
- SqlUserDefinedAggregateAttribute.cs
- XmlStreamStore.cs
- NotCondition.cs
- Glyph.cs
- ParallelActivityDesigner.cs
- ActivityBindForm.Designer.cs
- IntegerValidator.cs
- RangeEnumerable.cs
- SQLInt64Storage.cs
- SafeUserTokenHandle.cs
- Win32PrintDialog.cs
- AspNetCacheProfileAttribute.cs
- LocationSectionRecord.cs
- DiffuseMaterial.cs
- LinkButton.cs
- StringUtil.cs
- CodeDefaultValueExpression.cs
- SqlErrorCollection.cs
- CompoundFileIOPermission.cs
- CallbackValidatorAttribute.cs
- ProfileSection.cs
- RegexWriter.cs
- DataGridViewCellEventArgs.cs
- ResXResourceWriter.cs
- TextDocumentView.cs
- StructuredTypeInfo.cs
- OutputCacheProfileCollection.cs
- WorkflowMarkupSerializationException.cs
- Message.cs
- ContentType.cs
- SchemaAttDef.cs
- printdlgexmarshaler.cs
- FixedBufferAttribute.cs
- SymmetricAlgorithm.cs
- StateDesigner.LayoutSelectionGlyph.cs
- safesecurityhelperavalon.cs
- unitconverter.cs
- PrintingPermissionAttribute.cs
- CalendarDesigner.cs
- ParserStack.cs
- QuadTree.cs