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
- SmtpNegotiateAuthenticationModule.cs
- PeerContact.cs
- GridViewRowPresenterBase.cs
- PkcsMisc.cs
- EventMappingSettings.cs
- WebExceptionStatus.cs
- PackageDigitalSignatureManager.cs
- MarshalDirectiveException.cs
- HttpResponseHeader.cs
- XmlSerializationGeneratedCode.cs
- NodeFunctions.cs
- TextTreeRootNode.cs
- FontFamily.cs
- CapabilitiesState.cs
- DbSource.cs
- OrthographicCamera.cs
- TemplateField.cs
- SplitterPanelDesigner.cs
- EntityStoreSchemaGenerator.cs
- KeyPressEvent.cs
- _AutoWebProxyScriptEngine.cs
- OracleBinary.cs
- TextServicesPropertyRanges.cs
- HtmlInputControl.cs
- VoiceChangeEventArgs.cs
- ComponentEditorPage.cs
- CustomCategoryAttribute.cs
- SqlConnectionString.cs
- XslAstAnalyzer.cs
- HtmlLink.cs
- SafeRegistryHandle.cs
- RectangleGeometry.cs
- URLString.cs
- PageStatePersister.cs
- CustomAttribute.cs
- SoapSchemaMember.cs
- BufferedGraphicsContext.cs
- DetailsViewModeEventArgs.cs
- CheckBoxRenderer.cs
- mactripleDES.cs
- MatrixTransform3D.cs
- LinqDataSourceDisposeEventArgs.cs
- TextReturnReader.cs
- StreamingContext.cs
- SpeechRecognizer.cs
- GroupBoxRenderer.cs
- SystemResourceHost.cs
- DataRecordInfo.cs
- tabpagecollectioneditor.cs
- EntityExpressionVisitor.cs
- ModifierKeysConverter.cs
- AggregationMinMaxHelpers.cs
- Membership.cs
- ImageSourceConverter.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- SizeF.cs
- WebPartDescriptionCollection.cs
- ViewBase.cs
- UrlAuthorizationModule.cs
- XmlSchemaAnnotation.cs
- HttpDebugHandler.cs
- RichTextBoxConstants.cs
- GenericAuthenticationEventArgs.cs
- DiscoveryUtility.cs
- ToggleButton.cs
- CodeDelegateInvokeExpression.cs
- CommonDialog.cs
- TranslateTransform.cs
- Trigger.cs
- DoubleLinkList.cs
- LinkedResource.cs
- DefaultAuthorizationContext.cs
- SmtpMail.cs
- HtmlTextArea.cs
- TextFindEngine.cs
- LineGeometry.cs
- DefaultParameterValueAttribute.cs
- TextClipboardData.cs
- SafeSecurityHandles.cs
- ViewEventArgs.cs
- ProcessThread.cs
- Int64Animation.cs
- ActiveXContainer.cs
- IntegerValidatorAttribute.cs
- DataGridViewColumnHeaderCell.cs
- PrintPreviewControl.cs
- HttpRawResponse.cs
- DesignerLinkAdapter.cs
- ErrorLog.cs
- XmlSchemaException.cs
- Attributes.cs
- Tile.cs
- ListViewUpdatedEventArgs.cs
- ControlPropertyNameConverter.cs
- WebEvents.cs
- MsdtcClusterUtils.cs
- CollectionChangedEventManager.cs
- BitmapEffectDrawingContextWalker.cs
- FieldBuilder.cs
- ValuePattern.cs