Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / Emit / ParameterToken.cs / 1 / ParameterToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: ParameterToken ** ** ** Purpose: metadata tokens for a parameter ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; // The ParameterToken class is an opaque representation of the Token returned // by the Metadata to represent the parameter. [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct ParameterToken { public static readonly ParameterToken Empty = new ParameterToken(); internal int m_tkParameter; #if false public ParameterToken() { m_tkParameter=0; } #endif internal ParameterToken(int tkParam) { m_tkParameter = tkParam; } public int Token { get { return m_tkParameter; } } public override int GetHashCode() { return m_tkParameter; } public override bool Equals(Object obj) { if (obj is ParameterToken) return Equals((ParameterToken)obj); else return false; } public bool Equals(ParameterToken obj) { return obj.m_tkParameter == m_tkParameter; } public static bool operator ==(ParameterToken a, ParameterToken b) { return a.Equals(b); } public static bool operator !=(ParameterToken a, ParameterToken b) { return !(a == b); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GridItemPattern.cs
- BufferModesCollection.cs
- SqlNamer.cs
- RegexGroup.cs
- XmlSerializerFactory.cs
- httpapplicationstate.cs
- ObjectDataSourceStatusEventArgs.cs
- EdmMember.cs
- UnmanagedMemoryStreamWrapper.cs
- DataGridViewImageColumn.cs
- Form.cs
- ProfileParameter.cs
- ListControlBoundActionList.cs
- COMException.cs
- FormsAuthenticationEventArgs.cs
- SerialPort.cs
- JsonFormatWriterGenerator.cs
- SimpleRecyclingCache.cs
- PersistenceTypeAttribute.cs
- Line.cs
- ConstrainedGroup.cs
- SiteMapNodeItemEventArgs.cs
- Configuration.cs
- GraphicsState.cs
- RootAction.cs
- ConfigXmlElement.cs
- MethodImplAttribute.cs
- FixedTextSelectionProcessor.cs
- ByteAnimation.cs
- LinqDataSourceStatusEventArgs.cs
- CroppedBitmap.cs
- SourceFileInfo.cs
- CursorConverter.cs
- LogicalCallContext.cs
- MouseButtonEventArgs.cs
- Configuration.cs
- NetworkInformationException.cs
- MasterPageCodeDomTreeGenerator.cs
- CodeAttributeArgument.cs
- CfgParser.cs
- TransportContext.cs
- SiteMapNodeItemEventArgs.cs
- PopupEventArgs.cs
- PDBReader.cs
- XsdCachingReader.cs
- DesignerOptions.cs
- ClockController.cs
- LazyTextWriterCreator.cs
- DebugView.cs
- NotifyInputEventArgs.cs
- WeakReadOnlyCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- LocalIdKeyIdentifierClause.cs
- Durable.cs
- ToolBar.cs
- UnsafePeerToPeerMethods.cs
- XmlText.cs
- DataViewListener.cs
- DrawingVisualDrawingContext.cs
- BitmapEffectvisualstate.cs
- ExtendedPropertyInfo.cs
- Attributes.cs
- ChangeBlockUndoRecord.cs
- ObjectPersistData.cs
- Int32Rect.cs
- DataFieldConverter.cs
- DirtyTextRange.cs
- BadImageFormatException.cs
- ConvertersCollection.cs
- sortedlist.cs
- EllipseGeometry.cs
- DateTimePicker.cs
- XmlSerializerAssemblyAttribute.cs
- MethodImplAttribute.cs
- SQLDecimalStorage.cs
- CommentGlyph.cs
- DataStreamFromComStream.cs
- ColorAnimationBase.cs
- Pair.cs
- StickyNote.cs
- TypeValidationEventArgs.cs
- XmlReturnWriter.cs
- SweepDirectionValidation.cs
- SortQuery.cs
- DocumentSchemaValidator.cs
- Image.cs
- KnownBoxes.cs
- baseaxisquery.cs
- SoapIgnoreAttribute.cs
- TypeProvider.cs
- TreeViewEvent.cs
- RegisteredExpandoAttribute.cs
- ItemContainerPattern.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Privilege.cs
- ToolStripStatusLabel.cs
- VScrollBar.cs
- BaseCodeDomTreeGenerator.cs
- DbProviderFactories.cs
- QueryBranchOp.cs