Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TypeBrowserDialog.cs
- DesignerAutoFormat.cs
- BitmapEffectrendercontext.cs
- StorageMappingFragment.cs
- LineServices.cs
- NamedPipeHostedTransportConfiguration.cs
- AutomationProperties.cs
- Mutex.cs
- AnnotationComponentManager.cs
- Package.cs
- DispatcherTimer.cs
- SearchForVirtualItemEventArgs.cs
- StatusBarAutomationPeer.cs
- ExitEventArgs.cs
- cookie.cs
- Char.cs
- SafeArrayTypeMismatchException.cs
- TextBoxBase.cs
- ProfileServiceManager.cs
- InvokePattern.cs
- Triangle.cs
- StringSorter.cs
- NameValueCollection.cs
- RegexParser.cs
- SystemUnicastIPAddressInformation.cs
- AnimationLayer.cs
- UIntPtr.cs
- securitycriticaldataformultiplegetandset.cs
- RoutedEventConverter.cs
- GridItemPattern.cs
- DetailsViewModeEventArgs.cs
- StringKeyFrameCollection.cs
- GeometryCollection.cs
- DbConnectionPoolOptions.cs
- DependencyPropertyHelper.cs
- WindowsStatusBar.cs
- DocumentViewerConstants.cs
- Currency.cs
- Material.cs
- SizeAnimation.cs
- ResXDataNode.cs
- DataGridViewLinkColumn.cs
- SqlInternalConnectionTds.cs
- XmlSchemaImport.cs
- DispatcherHooks.cs
- OneWayBindingElement.cs
- RoleGroup.cs
- RegexCompilationInfo.cs
- FigureParagraph.cs
- GridSplitterAutomationPeer.cs
- Transform3DGroup.cs
- CompoundFileStorageReference.cs
- GuidelineSet.cs
- ChildrenQuery.cs
- StylusPointDescription.cs
- ScriptReference.cs
- ItemMap.cs
- SafeCryptoHandles.cs
- ButtonBaseAutomationPeer.cs
- WmpBitmapEncoder.cs
- RemoteWebConfigurationHost.cs
- InnerItemCollectionView.cs
- SequentialWorkflowHeaderFooter.cs
- SafeNativeMethods.cs
- DataTablePropertyDescriptor.cs
- WebProxyScriptElement.cs
- EmptyImpersonationContext.cs
- StylusPointDescription.cs
- ToolStripRenderer.cs
- _TLSstream.cs
- MessageSecurityOverTcpElement.cs
- DocumentReferenceCollection.cs
- ReadOnlyAttribute.cs
- IncrementalCompileAnalyzer.cs
- SrgsGrammarCompiler.cs
- MultiByteCodec.cs
- SecurityBindingElement.cs
- ApplicationContext.cs
- InvalidPrinterException.cs
- ComponentRenameEvent.cs
- PeerUnsafeNativeMethods.cs
- HtmlShimManager.cs
- PTProvider.cs
- ObjectResult.cs
- MsmqIntegrationSecurityElement.cs
- XmlAttribute.cs
- IsolatedStorageFilePermission.cs
- SamlAuthorizationDecisionClaimResource.cs
- BreakSafeBase.cs
- XmlMtomWriter.cs
- DataGridRelationshipRow.cs
- BaseAsyncResult.cs
- RoutedEventConverter.cs
- HeaderedItemsControl.cs
- ContextBase.cs
- RelationshipWrapper.cs
- CustomPopupPlacement.cs
- WindowsSpinner.cs
- IIS7ConfigurationLoader.cs
- TreeNodeCollectionEditorDialog.cs