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
- View.cs
- SqlCacheDependencySection.cs
- StackSpiller.Bindings.cs
- Converter.cs
- RadioButton.cs
- ToolStripContentPanel.cs
- AutomationElementCollection.cs
- Rule.cs
- DecoderReplacementFallback.cs
- XmlSchemaGroup.cs
- RowToFieldTransformer.cs
- Unit.cs
- ApplicationId.cs
- PictureBox.cs
- GPRECT.cs
- EventItfInfo.cs
- SqlNotificationRequest.cs
- CloseCryptoHandleRequest.cs
- OneOfScalarConst.cs
- RequestSecurityTokenForGetBrowserToken.cs
- EditorAttribute.cs
- ImmComposition.cs
- WebResourceUtil.cs
- XPathNodePointer.cs
- RequestChannelBinder.cs
- BitmapEffectInputConnector.cs
- StylusButtonEventArgs.cs
- GiveFeedbackEvent.cs
- BamlBinaryWriter.cs
- BooleanToVisibilityConverter.cs
- ListBindableAttribute.cs
- EdmToObjectNamespaceMap.cs
- DataGridState.cs
- TypeResolver.cs
- Keywords.cs
- EventData.cs
- TextRunCache.cs
- ResolveMatchesMessage11.cs
- LoadWorkflowAsyncResult.cs
- SqlFileStream.cs
- RuleSettings.cs
- CompilationSection.cs
- DataGridRelationshipRow.cs
- DataBindingHandlerAttribute.cs
- AbstractSvcMapFileLoader.cs
- DataBindingCollection.cs
- WrapPanel.cs
- TypedElement.cs
- GridViewCancelEditEventArgs.cs
- StoreItemCollection.cs
- DurableInstancingOptions.cs
- unsafenativemethodstextservices.cs
- AccessDataSourceView.cs
- HtmlControlPersistable.cs
- Point3DAnimationBase.cs
- FullTextBreakpoint.cs
- Control.cs
- DESCryptoServiceProvider.cs
- CodeCatchClause.cs
- VisualStyleElement.cs
- CheckoutException.cs
- PackagePart.cs
- RecordsAffectedEventArgs.cs
- PasswordPropertyTextAttribute.cs
- ToolStripComboBox.cs
- CompilerCollection.cs
- ClientScriptManager.cs
- XmlCodeExporter.cs
- X509Chain.cs
- DecimalStorage.cs
- EdmToObjectNamespaceMap.cs
- PageOutputColor.cs
- RegexWriter.cs
- InkCanvas.cs
- ThemeDirectoryCompiler.cs
- BooleanProjectedSlot.cs
- ACL.cs
- InputLanguageEventArgs.cs
- SafeFileMappingHandle.cs
- DataTransferEventArgs.cs
- CriticalExceptions.cs
- UpdatePanel.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ConstraintCollection.cs
- ClrPerspective.cs
- PaperSize.cs
- DependencyObjectPropertyDescriptor.cs
- XmlSchemaInclude.cs
- EnumType.cs
- ToolStripDesigner.cs
- RSACryptoServiceProvider.cs
- DbCommandDefinition.cs
- ContentType.cs
- DbParameterCollection.cs
- EntityDataSourceViewSchema.cs
- TempFiles.cs
- GroupItemAutomationPeer.cs
- SecurityUniqueId.cs
- EventBuilder.cs
- XmlEncoding.cs