Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / ParameterToken.cs / 1305376 / 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
- IndexOutOfRangeException.cs
- EUCJPEncoding.cs
- RegexCharClass.cs
- PipelineDeploymentState.cs
- RSAPKCS1SignatureFormatter.cs
- URLAttribute.cs
- CalendarAutoFormat.cs
- StoreConnection.cs
- ButtonChrome.cs
- grammarelement.cs
- RightsManagementLicense.cs
- DelegateBodyWriter.cs
- LinkedResource.cs
- EventBuilder.cs
- SQLConvert.cs
- InOutArgument.cs
- SoapParser.cs
- HtmlTableCell.cs
- EqualityArray.cs
- TreeNodeBindingCollection.cs
- InertiaRotationBehavior.cs
- StreamGeometry.cs
- CharStorage.cs
- XPathSelfQuery.cs
- BulletedList.cs
- ResourceExpressionBuilder.cs
- InsufficientMemoryException.cs
- KeyInterop.cs
- SessionStateSection.cs
- SByte.cs
- _SslStream.cs
- CommonRemoteMemoryBlock.cs
- PageContentAsyncResult.cs
- BigInt.cs
- CopyAction.cs
- DataGridViewUtilities.cs
- SingleKeyFrameCollection.cs
- PrintPreviewGraphics.cs
- SerialErrors.cs
- MLangCodePageEncoding.cs
- InvariantComparer.cs
- FolderBrowserDialog.cs
- UTF7Encoding.cs
- XhtmlBasicTextViewAdapter.cs
- shaperfactory.cs
- TimeSpanStorage.cs
- ServicePointManagerElement.cs
- MultilineStringEditor.cs
- StickyNoteContentControl.cs
- DropDownHolder.cs
- TextPointer.cs
- DoubleStorage.cs
- LinkedList.cs
- IncrementalCompileAnalyzer.cs
- OdbcReferenceCollection.cs
- SctClaimSerializer.cs
- HttpApplication.cs
- TypeConverters.cs
- ListSurrogate.cs
- BufferBuilder.cs
- MarkerProperties.cs
- CompoundFileStorageReference.cs
- CompilationSection.cs
- AttributeCollection.cs
- TextModifier.cs
- JsonFormatReaderGenerator.cs
- DBDataPermissionAttribute.cs
- ValidatedControlConverter.cs
- PropertyInformationCollection.cs
- PageThemeParser.cs
- TextUtf8RawTextWriter.cs
- SoapExtensionTypeElement.cs
- MetadataReference.cs
- DataGridViewTextBoxCell.cs
- HtmlInputSubmit.cs
- SeekableReadStream.cs
- _ProxyRegBlob.cs
- InvalidOleVariantTypeException.cs
- IDQuery.cs
- TrackingServices.cs
- CapabilitiesState.cs
- ListView.cs
- OracleCommandBuilder.cs
- CacheDependency.cs
- CultureTableRecord.cs
- ToolboxComponentsCreatedEventArgs.cs
- DateTimeOffset.cs
- PropertyNames.cs
- CategoryNameCollection.cs
- DataExpression.cs
- IgnoreFileBuildProvider.cs
- ComponentManagerBroker.cs
- TextPenaltyModule.cs
- TextModifier.cs
- TrustSection.cs
- PenContexts.cs
- CustomValidator.cs
- TemplateControlCodeDomTreeGenerator.cs
- COAUTHINFO.cs
- CollectionBuilder.cs