Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridLinkButton.cs
- ipaddressinformationcollection.cs
- RadioButton.cs
- IdleTimeoutMonitor.cs
- IdentityHolder.cs
- PropertyFilterAttribute.cs
- ShapingWorkspace.cs
- BoolExpression.cs
- XmlQualifiedName.cs
- XmlArrayItemAttribute.cs
- QilInvoke.cs
- WindowsRebar.cs
- XmlDomTextWriter.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- GACMembershipCondition.cs
- HttpModulesSection.cs
- AdapterSwitches.cs
- TextServicesLoader.cs
- AnnotationDocumentPaginator.cs
- WindowsListViewScroll.cs
- ForEach.cs
- XamlTreeBuilder.cs
- UnionQueryOperator.cs
- OutputWindow.cs
- HttpCookieCollection.cs
- OdbcDataAdapter.cs
- OleDbRowUpdatedEvent.cs
- Label.cs
- PerformanceCounterCategory.cs
- ObjectViewEntityCollectionData.cs
- VisemeEventArgs.cs
- DebugHandleTracker.cs
- ClientEventManager.cs
- IProvider.cs
- RelatedCurrencyManager.cs
- AutomationEventArgs.cs
- Int32EqualityComparer.cs
- ServiceInstallComponent.cs
- AutomationPattern.cs
- IsolatedStorage.cs
- ExpressionBuilder.cs
- LocationUpdates.cs
- AddressUtility.cs
- MenuCommandService.cs
- Delegate.cs
- ToolStripLabel.cs
- SelectionWordBreaker.cs
- ProfilePropertyMetadata.cs
- XsltQilFactory.cs
- sqlmetadatafactory.cs
- Section.cs
- DecoderBestFitFallback.cs
- CodeMemberEvent.cs
- CommonDialog.cs
- AnnotationStore.cs
- MiniConstructorInfo.cs
- TripleDES.cs
- StoreConnection.cs
- SafeHandles.cs
- WebServicesInteroperability.cs
- ExpressionConverter.cs
- PointAnimation.cs
- OperationParameterInfo.cs
- AttributeParameterInfo.cs
- Collection.cs
- DataGridCellItemAutomationPeer.cs
- MediaContextNotificationWindow.cs
- SecureConversationServiceCredential.cs
- DataGridViewColumn.cs
- XmlSchemaAnyAttribute.cs
- SoapElementAttribute.cs
- DataTrigger.cs
- DataGridViewRowEventArgs.cs
- TextDecoration.cs
- RankException.cs
- TypeDescriptionProviderAttribute.cs
- _SslStream.cs
- DifferencingCollection.cs
- TaskResultSetter.cs
- BufferModesCollection.cs
- NameNode.cs
- Evaluator.cs
- DataTableMapping.cs
- BindingsSection.cs
- SizeKeyFrameCollection.cs
- COAUTHINFO.cs
- DispatchWrapper.cs
- Stopwatch.cs
- DataServiceQueryProvider.cs
- MemoryFailPoint.cs
- HashRepartitionStream.cs
- CqlGenerator.cs
- CodeNamespaceCollection.cs
- GetMemberBinder.cs
- KeyFrames.cs
- EventProviderWriter.cs
- ObjectDataSourceView.cs
- DispatcherFrame.cs
- AsyncWaitHandle.cs
- DataListCommandEventArgs.cs