Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SmiTypedGetterSetter.cs
- SettingsBindableAttribute.cs
- CachedPathData.cs
- BamlLocalizableResource.cs
- HtmlTableCellCollection.cs
- ProtocolsSection.cs
- ResolveDuplex11AsyncResult.cs
- ProjectionCamera.cs
- _LoggingObject.cs
- TemplateBamlRecordReader.cs
- xmlglyphRunInfo.cs
- DictionaryCustomTypeDescriptor.cs
- ActivationWorker.cs
- TemplatedWizardStep.cs
- TdsEnums.cs
- InfiniteTimeSpanConverter.cs
- DelegatingConfigHost.cs
- Logging.cs
- WindowsAuthenticationEventArgs.cs
- PageContent.cs
- SQLDateTime.cs
- WebPartAddingEventArgs.cs
- DataGridBoolColumn.cs
- HttpProtocolReflector.cs
- Token.cs
- ExtensionQuery.cs
- SafeCryptContextHandle.cs
- DataServiceQueryProvider.cs
- ProcessModelInfo.cs
- ApplicationManager.cs
- WebPartConnectionCollection.cs
- RelOps.cs
- PlanCompiler.cs
- LicenseManager.cs
- StylusButtonEventArgs.cs
- ExtendedPropertyDescriptor.cs
- Bits.cs
- PartialList.cs
- CheckBox.cs
- BufferedResponseStream.cs
- validation.cs
- ArglessEventHandlerProxy.cs
- GrammarBuilderPhrase.cs
- ListBindableAttribute.cs
- __ConsoleStream.cs
- MobileResource.cs
- FederatedMessageSecurityOverHttpElement.cs
- TextRunCache.cs
- ServicePointManagerElement.cs
- DefaultBinder.cs
- PhysicalAddress.cs
- WindowsSecurityToken.cs
- ColorTranslator.cs
- ArraySortHelper.cs
- Model3DCollection.cs
- TaskResultSetter.cs
- SafeNativeMethods.cs
- UriWriter.cs
- DefaultHttpHandler.cs
- XsltQilFactory.cs
- RowToFieldTransformer.cs
- HttpException.cs
- Scene3D.cs
- HtmlHistory.cs
- XPathDocumentIterator.cs
- EncryptedType.cs
- WindowsRichEdit.cs
- TransformedBitmap.cs
- DocumentXmlWriter.cs
- TextElementEnumerator.cs
- SqlParameterizer.cs
- RepeaterItemCollection.cs
- ClientSettingsStore.cs
- WebPartEditorCancelVerb.cs
- SliderAutomationPeer.cs
- RoutingEndpointTrait.cs
- DropShadowEffect.cs
- Attributes.cs
- Action.cs
- AssemblyAttributes.cs
- HttpFormatExtensions.cs
- PartialArray.cs
- storepermission.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ModelFunctionTypeElement.cs
- XmlTextEncoder.cs
- TemplateInstanceAttribute.cs
- Int64Converter.cs
- SqlWorkflowPersistenceService.cs
- SqlMethodCallConverter.cs
- Timer.cs
- ValidationHelper.cs
- ManipulationStartingEventArgs.cs
- MethodImplAttribute.cs
- xamlnodes.cs
- WebPartEditorApplyVerb.cs
- WriteLine.cs
- SecurityResources.cs
- MemberHolder.cs
- HtmlInputFile.cs