Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Button.cs
- XmlReflectionMember.cs
- AnchoredBlock.cs
- ColumnCollection.cs
- InvokeHandlers.cs
- AttributeAction.cs
- SrgsSemanticInterpretationTag.cs
- FileDialog_Vista.cs
- ExpandedWrapper.cs
- NetworkCredential.cs
- UIElement.cs
- ArgumentException.cs
- DynamicRendererThreadManager.cs
- DiffuseMaterial.cs
- Tokenizer.cs
- RoleGroup.cs
- ContainerVisual.cs
- TileBrush.cs
- FloaterParaClient.cs
- SecurityDescriptor.cs
- ClientSettingsStore.cs
- ItemChangedEventArgs.cs
- WindowAutomationPeer.cs
- DbConnectionOptions.cs
- InfoCardServiceInstallComponent.cs
- BindingSource.cs
- Calendar.cs
- HierarchicalDataBoundControlAdapter.cs
- ThrowHelper.cs
- DataViewListener.cs
- AxHost.cs
- BitmapMetadata.cs
- objectquery_tresulttype.cs
- ProviderConnectionPoint.cs
- MatrixTransform3D.cs
- VirtualStackFrame.cs
- Transform3D.cs
- XmlAttributeCache.cs
- HiddenFieldPageStatePersister.cs
- RenderContext.cs
- BaseAsyncResult.cs
- InkPresenter.cs
- Base64Encoder.cs
- PersonalizationProvider.cs
- TextDpi.cs
- XamlReaderHelper.cs
- RuleInfoComparer.cs
- ClrProviderManifest.cs
- SelfIssuedAuthProofToken.cs
- PersonalizationAdministration.cs
- contentDescriptor.cs
- SmtpException.cs
- LabelLiteral.cs
- CategoriesDocumentFormatter.cs
- BindToObject.cs
- RIPEMD160.cs
- PingReply.cs
- InputBuffer.cs
- ControlCommandSet.cs
- Base64Stream.cs
- ImportCatalogPart.cs
- ToolStripPanelCell.cs
- KeyPressEvent.cs
- WmlValidationSummaryAdapter.cs
- PointCollection.cs
- BamlTreeNode.cs
- ApplyImportsAction.cs
- List.cs
- XmlSchemaAnyAttribute.cs
- XappLauncher.cs
- MaterialCollection.cs
- InlineUIContainer.cs
- ColorConvertedBitmapExtension.cs
- CodeSubDirectoriesCollection.cs
- GifBitmapEncoder.cs
- updatecommandorderer.cs
- MetaTable.cs
- XmlAnyElementAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- Light.cs
- Helpers.cs
- DrawingCollection.cs
- FullTrustAssemblyCollection.cs
- GlobalProxySelection.cs
- FormsAuthenticationTicket.cs
- EntityViewContainer.cs
- PathFigureCollection.cs
- ObjectItemAttributeAssemblyLoader.cs
- Size3DConverter.cs
- MdImport.cs
- ConnectionStringEditor.cs
- SignedXml.cs
- Baml2006ReaderContext.cs
- ComponentConverter.cs
- TcpTransportSecurityElement.cs
- FunctionDescription.cs
- IsolatedStorageFilePermission.cs
- ToolboxComponentsCreatingEventArgs.cs
- PerformanceCounter.cs
- SpecialFolderEnumConverter.cs