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
- CompoundFileStorageReference.cs
- SpecularMaterial.cs
- ListViewGroup.cs
- HttpConfigurationSystem.cs
- PrintingPermissionAttribute.cs
- HashUtility.cs
- ChannelBinding.cs
- _WinHttpWebProxyDataBuilder.cs
- BinaryUtilClasses.cs
- GeneralTransform3DCollection.cs
- NativeMethodsCLR.cs
- ClientConfigurationSystem.cs
- XmlUtil.cs
- SamlAuthenticationStatement.cs
- panel.cs
- DbProviderManifest.cs
- ThreadExceptionEvent.cs
- QilInvokeEarlyBound.cs
- WebProxyScriptElement.cs
- OutputCacheProfileCollection.cs
- SerializationStore.cs
- DetailsViewRowCollection.cs
- DbConnectionStringBuilder.cs
- DictionaryMarkupSerializer.cs
- SortDescriptionCollection.cs
- ViewManager.cs
- WebPartChrome.cs
- VirtualPath.cs
- FrameworkElementFactoryMarkupObject.cs
- Point3DCollectionConverter.cs
- OutOfMemoryException.cs
- EventManager.cs
- ProgressChangedEventArgs.cs
- InheritanceContextHelper.cs
- StaticTextPointer.cs
- MissingMethodException.cs
- HtmlDocument.cs
- UntrustedRecipientException.cs
- PathGeometry.cs
- RemoteHelper.cs
- XmlDataSourceView.cs
- DataGridViewColumn.cs
- RawStylusInput.cs
- XmlSchemaComplexType.cs
- CodeDirectoryCompiler.cs
- ValueSerializerAttribute.cs
- JoinElimination.cs
- SqlDataSourceFilteringEventArgs.cs
- WindowsMenu.cs
- XmlLanguage.cs
- XmlCharCheckingWriter.cs
- HelpInfo.cs
- ModuleBuilder.cs
- ToolStripSeparatorRenderEventArgs.cs
- CodeParameterDeclarationExpression.cs
- PresentationTraceSources.cs
- ExpandoClass.cs
- ThreadExceptionEvent.cs
- RectangleF.cs
- DocumentGridContextMenu.cs
- GcSettings.cs
- CriticalHandle.cs
- IPAddressCollection.cs
- BreakRecordTable.cs
- PropertyConverter.cs
- DataGridViewLayoutData.cs
- XamlTemplateSerializer.cs
- printdlgexmarshaler.cs
- SchemaNotation.cs
- TemplateAction.cs
- HealthMonitoringSection.cs
- AddInEnvironment.cs
- HttpProfileBase.cs
- ViewStateException.cs
- Tokenizer.cs
- XmlTypeMapping.cs
- InputEventArgs.cs
- List.cs
- JsonClassDataContract.cs
- RuntimeConfig.cs
- ParsedAttributeCollection.cs
- DummyDataSource.cs
- DocumentPageView.cs
- VoiceInfo.cs
- Paragraph.cs
- Light.cs
- AudioBase.cs
- RIPEMD160.cs
- Icon.cs
- DataGridViewColumnCollection.cs
- CursorConverter.cs
- PageSetupDialog.cs
- ChooseAction.cs
- CorrelationToken.cs
- FreezableOperations.cs
- TargetPerspective.cs
- PathSegment.cs
- UnsafeNativeMethodsCLR.cs
- GroupDescription.cs
- EventDescriptor.cs