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
- ByteConverter.cs
- HtmlToClrEventProxy.cs
- DurationConverter.cs
- EmptyCollection.cs
- XmlSchemaValidator.cs
- String.cs
- webproxy.cs
- MembershipPasswordException.cs
- FillErrorEventArgs.cs
- CodeCommentStatement.cs
- TreeBuilder.cs
- PaperSize.cs
- ControlUtil.cs
- LineMetrics.cs
- BitmapFrameDecode.cs
- DeadCharTextComposition.cs
- Stroke2.cs
- FrameworkContentElement.cs
- SecurityCriticalDataForSet.cs
- VSWCFServiceContractGenerator.cs
- DataObject.cs
- HtmlMeta.cs
- SQLInt64.cs
- DateRangeEvent.cs
- SettingsSection.cs
- DataServiceQueryContinuation.cs
- IdnMapping.cs
- SmtpTransport.cs
- XmlSchemaSimpleContent.cs
- WebConfigManager.cs
- ApplicationActivator.cs
- SQLBytes.cs
- SmiRecordBuffer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SafeCertificateContext.cs
- DataObjectMethodAttribute.cs
- DateTimeOffset.cs
- PageAsyncTaskManager.cs
- GenericFlowSwitchHelper.cs
- AnnotationHighlightLayer.cs
- dataprotectionpermissionattribute.cs
- BufferModesCollection.cs
- SQLSingleStorage.cs
- GraphicsState.cs
- Exceptions.cs
- HashAlgorithm.cs
- ApplicationProxyInternal.cs
- SmiContext.cs
- ImageListImageEditor.cs
- BamlRecordReader.cs
- Compiler.cs
- NonClientArea.cs
- ViewCellRelation.cs
- AssemblyInfo.cs
- LinearQuaternionKeyFrame.cs
- TreeNodeBinding.cs
- BuilderInfo.cs
- DesignTimeVisibleAttribute.cs
- SpotLight.cs
- dbdatarecord.cs
- AutomationPattern.cs
- SemanticResultKey.cs
- RuleCache.cs
- ServiceDescriptionImporter.cs
- WinEventWrap.cs
- SerialErrors.cs
- SystemTcpConnection.cs
- InProcStateClientManager.cs
- BoundField.cs
- NameValuePair.cs
- HandleCollector.cs
- FontCacheLogic.cs
- BindingContext.cs
- TextStore.cs
- SchemaImporterExtensionsSection.cs
- CreateWorkflowOwnerCommand.cs
- StrokeCollectionDefaultValueFactory.cs
- SqlColumnizer.cs
- ProviderSettingsCollection.cs
- SecurityCriticalDataForSet.cs
- WebControlAdapter.cs
- SchemaCollectionPreprocessor.cs
- FontFamilyConverter.cs
- TextParagraphProperties.cs
- ClientBuildManagerCallback.cs
- LayoutEditorPart.cs
- RangeEnumerable.cs
- ListBoxItemAutomationPeer.cs
- EndpointDispatcherTable.cs
- SqlNotificationRequest.cs
- ObfuscationAttribute.cs
- Int16AnimationBase.cs
- FactoryMaker.cs
- AssociationType.cs
- Command.cs
- StyleSelector.cs
- GeneralTransform3D.cs
- GZipDecoder.cs
- RankException.cs
- PagedDataSource.cs