Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeProcessHandle.cs
- ArgumentElement.cs
- MediaSystem.cs
- DiagnosticTrace.cs
- DBConnectionString.cs
- Column.cs
- MemberListBinding.cs
- MSAANativeProvider.cs
- _ShellExpression.cs
- MsmqChannelListenerBase.cs
- ParserExtension.cs
- X509ChainPolicy.cs
- Brush.cs
- ConfigurationSettings.cs
- ModelFactory.cs
- CheckBoxRenderer.cs
- PropertyOrder.cs
- PageMediaSize.cs
- Expressions.cs
- XmlDataSourceNodeDescriptor.cs
- DispatcherEventArgs.cs
- XhtmlBasicPhoneCallAdapter.cs
- FigureParaClient.cs
- DataTemplateSelector.cs
- ToolStripRendererSwitcher.cs
- ResourceCategoryAttribute.cs
- XamlRtfConverter.cs
- ContextStaticAttribute.cs
- QueryException.cs
- AlphaSortedEnumConverter.cs
- PropertyItemInternal.cs
- PerfCounters.cs
- StatusBarItemAutomationPeer.cs
- DiagnosticTrace.cs
- SchemaTypeEmitter.cs
- InfocardInteractiveChannelInitializer.cs
- HttpRequestCacheValidator.cs
- TextTreeInsertUndoUnit.cs
- StylusButton.cs
- Polyline.cs
- TextTreeNode.cs
- RemotingSurrogateSelector.cs
- WebBrowser.cs
- Baml2006ReaderSettings.cs
- _NegotiateClient.cs
- TraceContext.cs
- XamlSerializer.cs
- QualifiedCellIdBoolean.cs
- CaseDesigner.xaml.cs
- DoubleLinkListEnumerator.cs
- PersistencePipeline.cs
- ControlHelper.cs
- MailAddress.cs
- NodeFunctions.cs
- DescendentsWalkerBase.cs
- DecimalAnimationUsingKeyFrames.cs
- InkCollectionBehavior.cs
- ControlBuilderAttribute.cs
- StylusCollection.cs
- RequiredAttributeAttribute.cs
- ImageMap.cs
- PrintController.cs
- PointCollection.cs
- ToolZone.cs
- AddInDeploymentState.cs
- PathSegmentCollection.cs
- Module.cs
- PageSetupDialog.cs
- securitycriticaldataClass.cs
- DragStartedEventArgs.cs
- RuntimeWrappedException.cs
- MessageLogger.cs
- COM2ComponentEditor.cs
- IntMinMaxAggregationOperator.cs
- TextOnlyOutput.cs
- TraceSource.cs
- WhitespaceRuleLookup.cs
- GenericTextProperties.cs
- HtmlElementErrorEventArgs.cs
- OrderedHashRepartitionEnumerator.cs
- StructuredTypeEmitter.cs
- WsatServiceCertificate.cs
- UidManager.cs
- MetafileHeaderWmf.cs
- TextServicesLoader.cs
- ColorContext.cs
- BindableAttribute.cs
- BoundColumn.cs
- TextFindEngine.cs
- RangeValidator.cs
- UnknownBitmapDecoder.cs
- ExpressionValueEditor.cs
- IPAddress.cs
- PersistenceContextEnlistment.cs
- GridPattern.cs
- XmlSchemaInclude.cs
- LogEntryHeaderSerializer.cs
- Panel.cs
- StringSource.cs
- NameTable.cs