Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- BinaryObjectWriter.cs
- TextServicesDisplayAttributePropertyRanges.cs
- XmlValidatingReader.cs
- DocumentPageView.cs
- ContainerAction.cs
- TransactionContextValidator.cs
- DriveNotFoundException.cs
- LicFileLicenseProvider.cs
- XslTransformFileEditor.cs
- BindingExpressionBase.cs
- WinEventWrap.cs
- RawStylusActions.cs
- FixedTextSelectionProcessor.cs
- OptionalRstParameters.cs
- XmlNamespaceMappingCollection.cs
- ClientConvert.cs
- AccessKeyManager.cs
- WebHttpBehavior.cs
- MsmqIntegrationBindingCollectionElement.cs
- LocalFileSettingsProvider.cs
- MimeXmlImporter.cs
- LogReserveAndAppendState.cs
- QueryableDataSource.cs
- ObjectDataSourceWizardForm.cs
- webproxy.cs
- SmiEventSink.cs
- SerializableTypeCodeDomSerializer.cs
- XmlILOptimizerVisitor.cs
- GrammarBuilder.cs
- BamlCollectionHolder.cs
- ExpandSegment.cs
- Point3DCollection.cs
- EncoderParameters.cs
- DataSvcMapFile.cs
- GenericUI.cs
- TemplateControlParser.cs
- Point.cs
- UserControl.cs
- WebHttpBinding.cs
- DefaultValueMapping.cs
- URLAttribute.cs
- Selection.cs
- Point.cs
- AsyncContentLoadedEventArgs.cs
- LambdaCompiler.Statements.cs
- ArglessEventHandlerProxy.cs
- UserControl.cs
- ErrorEventArgs.cs
- ScriptControlDescriptor.cs
- Parser.cs
- ToolboxBitmapAttribute.cs
- CommonEndpointBehaviorElement.cs
- WebPartConnectionCollection.cs
- GridViewColumnHeaderAutomationPeer.cs
- NameValueSectionHandler.cs
- AsyncPostBackTrigger.cs
- CodeTypeReferenceSerializer.cs
- XmlWriterSettings.cs
- DataViewSettingCollection.cs
- DataGridViewSortCompareEventArgs.cs
- TitleStyle.cs
- odbcmetadatacollectionnames.cs
- SrgsItemList.cs
- smtpconnection.cs
- WebBrowserDocumentCompletedEventHandler.cs
- GridViewColumn.cs
- EpmHelper.cs
- SiteMapDataSource.cs
- StrokeRenderer.cs
- IFormattable.cs
- MimeFormReflector.cs
- PathSegment.cs
- WebPartVerbsEventArgs.cs
- KeyConstraint.cs
- InputProcessorProfiles.cs
- LineServicesCallbacks.cs
- UnmanagedHandle.cs
- SqlNodeAnnotations.cs
- RepeaterItem.cs
- TreeViewHitTestInfo.cs
- DelimitedListTraceListener.cs
- OdbcConnectionString.cs
- DataGridViewControlCollection.cs
- Convert.cs
- SerializationBinder.cs
- TriggerActionCollection.cs
- XappLauncher.cs
- CodeParameterDeclarationExpression.cs
- RtfToXamlLexer.cs
- WindowsGraphicsWrapper.cs
- SHA256Managed.cs
- VerticalAlignConverter.cs
- BatchWriter.cs
- UInt64.cs
- PostBackTrigger.cs
- SecureEnvironment.cs
- SocketException.cs
- PropertyValidationContext.cs
- NameValuePermission.cs
- CharacterMetricsDictionary.cs