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
- SystemIPv4InterfaceProperties.cs
- ApplicationId.cs
- CodeStatementCollection.cs
- CustomErrorsSection.cs
- HttpException.cs
- UserControl.cs
- NetworkInformationException.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- RtfControls.cs
- XhtmlConformanceSection.cs
- RightsManagementEncryptionTransform.cs
- MailMessageEventArgs.cs
- HandleRef.cs
- SocketInformation.cs
- BasePattern.cs
- PenThreadWorker.cs
- PageAdapter.cs
- MethodInfo.cs
- ExtractedStateEntry.cs
- CodeExpressionStatement.cs
- StrokeNodeOperations.cs
- ManagementQuery.cs
- FontInfo.cs
- figurelengthconverter.cs
- TrackingRecord.cs
- Image.cs
- OracleInternalConnection.cs
- RegistryExceptionHelper.cs
- basecomparevalidator.cs
- SafeFileMapViewHandle.cs
- Metafile.cs
- ClassHandlersStore.cs
- RoleServiceManager.cs
- OdbcParameterCollection.cs
- BulletChrome.cs
- SectionXmlInfo.cs
- FunctionImportElement.cs
- ListDictionaryInternal.cs
- ToolStripTextBox.cs
- RegexMatchCollection.cs
- SimpleBitVector32.cs
- XmlResolver.cs
- SystemException.cs
- CodeNamespaceCollection.cs
- UserControlCodeDomTreeGenerator.cs
- RectAnimation.cs
- VectorCollectionConverter.cs
- IChannel.cs
- TableRowGroup.cs
- DispatcherExceptionFilterEventArgs.cs
- SessionPageStatePersister.cs
- ColumnHeaderConverter.cs
- PolicyValidationException.cs
- CalculatedColumn.cs
- FullTextLine.cs
- ColumnMap.cs
- DesignerValidationSummaryAdapter.cs
- EndpointAddressProcessor.cs
- ResourceSet.cs
- CheckBoxList.cs
- WindowsPen.cs
- WindowPatternIdentifiers.cs
- StylusPointDescription.cs
- BooleanFunctions.cs
- smtppermission.cs
- AuthenticateEventArgs.cs
- SafeLibraryHandle.cs
- XsltArgumentList.cs
- ConfigsHelper.cs
- DiscoveryDocumentLinksPattern.cs
- RefExpr.cs
- BStrWrapper.cs
- SigningDialog.cs
- rsa.cs
- BindingList.cs
- CharEnumerator.cs
- UndoManager.cs
- DbRetry.cs
- XmlSigningNodeWriter.cs
- updateconfighost.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- FieldTemplateUserControl.cs
- SingleKeyFrameCollection.cs
- DataTemplate.cs
- PipelineModuleStepContainer.cs
- RelationshipSet.cs
- RectConverter.cs
- FontDifferentiator.cs
- Assembly.cs
- MaskedTextProvider.cs
- ConstructorNeedsTagAttribute.cs
- QilParameter.cs
- TextEndOfLine.cs
- QilList.cs
- ColumnCollection.cs
- Hash.cs
- XPathItem.cs
- RequestCacheValidator.cs
- ExpressionBuilder.cs
- HtmlInputSubmit.cs