Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UnionQueryOperator.cs
- Win32Native.cs
- SqlDependencyListener.cs
- HashCryptoHandle.cs
- TrackingLocation.cs
- ConstructorArgumentAttribute.cs
- control.ime.cs
- UncommonField.cs
- HandlerBase.cs
- Color.cs
- VisualStyleInformation.cs
- SupportsEventValidationAttribute.cs
- IndicShape.cs
- IntegerValidatorAttribute.cs
- SByteConverter.cs
- ColorAnimationUsingKeyFrames.cs
- InfoCardHelper.cs
- TitleStyle.cs
- CommandID.cs
- CodeTypeConstructor.cs
- FunctionDescription.cs
- NonceToken.cs
- DataGridViewCellPaintingEventArgs.cs
- EncodingStreamWrapper.cs
- PerformanceCounterPermission.cs
- CodeDirectiveCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- CodeMethodInvokeExpression.cs
- WriteTimeStream.cs
- CodeArgumentReferenceExpression.cs
- _DigestClient.cs
- ColorConvertedBitmapExtension.cs
- SimpleWebHandlerParser.cs
- httpstaticobjectscollection.cs
- AnonymousIdentificationSection.cs
- PresentationTraceSources.cs
- TreeBuilderBamlTranslator.cs
- BuildManager.cs
- ResourceIDHelper.cs
- RepeatButton.cs
- BooleanToVisibilityConverter.cs
- ServiceRouteHandler.cs
- ReferencedCollectionType.cs
- SelectingProviderEventArgs.cs
- SchemaMapping.cs
- XmlJsonReader.cs
- CompositeKey.cs
- XmlSerializerSection.cs
- OdbcEnvironmentHandle.cs
- SignatureConfirmations.cs
- baseaxisquery.cs
- FlowDocumentView.cs
- LocalValueEnumerator.cs
- XmlChildEnumerator.cs
- MenuItemStyleCollectionEditor.cs
- AttributeUsageAttribute.cs
- AttributeEmitter.cs
- SafeLocalMemHandle.cs
- InstanceNameConverter.cs
- WindowsPen.cs
- ISAPIRuntime.cs
- GuidelineSet.cs
- SHA384.cs
- FtpCachePolicyElement.cs
- DesignerObjectListAdapter.cs
- Cursor.cs
- SerializationStore.cs
- RoutedEventValueSerializer.cs
- SettingsAttributeDictionary.cs
- PhysicalOps.cs
- XamlRtfConverter.cs
- PropertyIDSet.cs
- ExitEventArgs.cs
- Sql8ExpressionRewriter.cs
- DefaultAsyncDataDispatcher.cs
- HtmlControlAdapter.cs
- QilGeneratorEnv.cs
- TransformerConfigurationWizardBase.cs
- PropertyRecord.cs
- StringValueConverter.cs
- BooleanExpr.cs
- PenContext.cs
- ReadOnlyPropertyMetadata.cs
- NotifyIcon.cs
- XmlnsDefinitionAttribute.cs
- SpellerError.cs
- NotCondition.cs
- ActionFrame.cs
- ContentElementCollection.cs
- XmlSignificantWhitespace.cs
- MappingModelBuildProvider.cs
- StorageMappingItemCollection.cs
- SortDescriptionCollection.cs
- SimpleWebHandlerParser.cs
- ClientRuntimeConfig.cs
- Directory.cs
- DispatcherExceptionFilterEventArgs.cs
- AssociationTypeEmitter.cs
- Properties.cs
- RectAnimationBase.cs