Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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); } } } // 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
- WindowsSolidBrush.cs
- ToolStripArrowRenderEventArgs.cs
- EntityContainerAssociationSetEnd.cs
- WsdlHelpGeneratorElement.cs
- IdentifierService.cs
- IRCollection.cs
- EditorZoneAutoFormat.cs
- StaticDataManager.cs
- AsymmetricKeyExchangeDeformatter.cs
- MouseEventArgs.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- TextMarkerSource.cs
- SkinBuilder.cs
- SqlClientFactory.cs
- InsufficientMemoryException.cs
- CompiledIdentityConstraint.cs
- LambdaCompiler.Logical.cs
- ViewBox.cs
- ChannelFactoryRefCache.cs
- TreeViewHitTestInfo.cs
- TextRangeEditTables.cs
- LowerCaseStringConverter.cs
- SystemInfo.cs
- HttpPostProtocolImporter.cs
- Span.cs
- LinqDataSourceSelectEventArgs.cs
- ReliabilityContractAttribute.cs
- TextProperties.cs
- FlatButtonAppearance.cs
- CombinedHttpChannel.cs
- ByteRangeDownloader.cs
- TypeInitializationException.cs
- DesignerResources.cs
- EmptyControlCollection.cs
- DataGridViewBand.cs
- DataServiceQueryOfT.cs
- CustomExpressionEventArgs.cs
- DataGridViewRowConverter.cs
- StackBuilderSink.cs
- SoapCodeExporter.cs
- ImageIndexConverter.cs
- CommandConverter.cs
- PersonalizationStateInfoCollection.cs
- FontFaceLayoutInfo.cs
- CannotUnloadAppDomainException.cs
- XmlMapping.cs
- BeginStoryboard.cs
- UnsafeNativeMethods.cs
- PerformanceCounterPermission.cs
- Type.cs
- HttpWriter.cs
- BamlRecordReader.cs
- BehaviorEditorPart.cs
- AffineTransform3D.cs
- Model3D.cs
- Focus.cs
- ToolStripItemCollection.cs
- ListControl.cs
- SqlRemoveConstantOrderBy.cs
- cookie.cs
- EventWaitHandle.cs
- SettingsProviderCollection.cs
- SystemWebExtensionsSectionGroup.cs
- WinFormsUtils.cs
- CompositeScriptReference.cs
- ConnectionInterfaceCollection.cs
- MILUtilities.cs
- PerspectiveCamera.cs
- httpstaticobjectscollection.cs
- ZipIOExtraField.cs
- ProfileManager.cs
- DBSchemaRow.cs
- CustomSignedXml.cs
- ProtocolsInstallComponent.cs
- SecurityTokenValidationException.cs
- ExcludeFromCodeCoverageAttribute.cs
- HttpResponse.cs
- DynamicDocumentPaginator.cs
- LeftCellWrapper.cs
- CompressStream.cs
- ApplicationServiceManager.cs
- ScrollViewer.cs
- PropertyToken.cs
- MinimizableAttributeTypeConverter.cs
- ProjectedSlot.cs
- TableDetailsCollection.cs
- BooleanFunctions.cs
- ValueType.cs
- CollectionView.cs
- GeneralTransform3DTo2D.cs
- IdentifierCollection.cs
- MULTI_QI.cs
- WindowHideOrCloseTracker.cs
- WsdlBuildProvider.cs
- PaintEvent.cs
- WebPartConnectionsEventArgs.cs
- ListSourceHelper.cs
- NTAccount.cs
- HttpHandlerAction.cs
- CaseInsensitiveComparer.cs