Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathNodePointer.cs
- RsaElement.cs
- Margins.cs
- EnumerableRowCollectionExtensions.cs
- FontFaceLayoutInfo.cs
- StrongName.cs
- UpdatePanelTrigger.cs
- EditorPartChrome.cs
- WebPartConnectionsCancelVerb.cs
- RowParagraph.cs
- UndirectedGraph.cs
- DesignerTransactionCloseEvent.cs
- ServiceContractListItemList.cs
- DATA_BLOB.cs
- AuthenticationManager.cs
- CLRBindingWorker.cs
- SqlRetyper.cs
- StateRuntime.cs
- InheritanceAttribute.cs
- BitStream.cs
- AddInIpcChannel.cs
- ReadOnlyPermissionSet.cs
- Config.cs
- SuppressMessageAttribute.cs
- SpeechDetectedEventArgs.cs
- WindowsScrollBarBits.cs
- PathFigureCollection.cs
- __FastResourceComparer.cs
- COAUTHINFO.cs
- TreeNodeCollection.cs
- RotationValidation.cs
- SystemIPAddressInformation.cs
- StylusEventArgs.cs
- IDQuery.cs
- FileDialog.cs
- PageParser.cs
- SafeBitVector32.cs
- DataGridViewCellStyleEditor.cs
- AuthenticationServiceManager.cs
- SQLInt64Storage.cs
- WebPageTraceListener.cs
- RangeBaseAutomationPeer.cs
- XamlToRtfWriter.cs
- ExcCanonicalXml.cs
- Propagator.JoinPropagator.cs
- RegexWorker.cs
- _LazyAsyncResult.cs
- HttpListenerPrefixCollection.cs
- NamespaceExpr.cs
- BindingContext.cs
- TraceSwitch.cs
- BamlLocalizationDictionary.cs
- SkinBuilder.cs
- DictionaryGlobals.cs
- IconEditor.cs
- CompareInfo.cs
- DBSchemaTable.cs
- PackageProperties.cs
- TypedElement.cs
- ReferenceSchema.cs
- ExpandSegment.cs
- StringComparer.cs
- ArrayWithOffset.cs
- WsdlImporterElement.cs
- FileDetails.cs
- StorageBasedPackageProperties.cs
- SchemaTableOptionalColumn.cs
- FontCacheUtil.cs
- EntitySet.cs
- GenericEnumerator.cs
- ContractNamespaceAttribute.cs
- ArraySegment.cs
- ThreadExceptionDialog.cs
- InstalledVoice.cs
- InstanceValue.cs
- SystemColors.cs
- FormViewUpdateEventArgs.cs
- StreamAsIStream.cs
- LineGeometry.cs
- DataGridViewAdvancedBorderStyle.cs
- BindingMAnagerBase.cs
- CodeMethodInvokeExpression.cs
- HttpModuleCollection.cs
- PropVariant.cs
- PtsHelper.cs
- AutoCompleteStringCollection.cs
- SystemIPv4InterfaceProperties.cs
- CompoundFileStreamReference.cs
- ConstantExpression.cs
- Operators.cs
- SafePEFileHandle.cs
- PerformanceCounterPermissionAttribute.cs
- PackagePartCollection.cs
- DataGridViewColumnCollection.cs
- PopupControlService.cs
- ElementProxy.cs
- DataGridViewCellFormattingEventArgs.cs
- BitmapEffectGroup.cs
- InlinedAggregationOperatorEnumerator.cs
- SystemUdpStatistics.cs