Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DBConnection.cs
- UserMapPath.cs
- CompressedStack.cs
- StaticExtension.cs
- VsPropertyGrid.cs
- HotSpotCollection.cs
- SystemIcmpV6Statistics.cs
- TextDataBindingHandler.cs
- ParsedAttributeCollection.cs
- CancellableEnumerable.cs
- WindowsRichEdit.cs
- FixedStringLookup.cs
- EditorPartChrome.cs
- BamlRecordHelper.cs
- NotificationContext.cs
- DataTableNewRowEvent.cs
- DrawingContextWalker.cs
- DataControlLinkButton.cs
- FontEditor.cs
- SafeCoTaskMem.cs
- SimpleTextLine.cs
- CodeMemberMethod.cs
- NeutralResourcesLanguageAttribute.cs
- Types.cs
- WsdlWriter.cs
- CommonProperties.cs
- CharStorage.cs
- UniqueIdentifierService.cs
- IconEditor.cs
- Win32SafeHandles.cs
- UICuesEvent.cs
- PageAsyncTaskManager.cs
- ListViewItemMouseHoverEvent.cs
- ToolStripLocationCancelEventArgs.cs
- ImageMapEventArgs.cs
- COM2Properties.cs
- JpegBitmapDecoder.cs
- ConnectionConsumerAttribute.cs
- InheritanceService.cs
- RowVisual.cs
- BuildProviderCollection.cs
- Triplet.cs
- DragAssistanceManager.cs
- XsltSettings.cs
- ScrollViewerAutomationPeer.cs
- TraceRecord.cs
- CultureMapper.cs
- TableColumnCollection.cs
- PkcsMisc.cs
- CommentGlyph.cs
- Char.cs
- configsystem.cs
- BoolExpr.cs
- InvokeProviderWrapper.cs
- HeaderCollection.cs
- ProfileEventArgs.cs
- XmlExpressionDumper.cs
- AmbientLight.cs
- BuildProvider.cs
- HttpCookie.cs
- ArrayConverter.cs
- PointLight.cs
- SecurityTokenProvider.cs
- BinaryFormatter.cs
- AttachedPropertyMethodSelector.cs
- MenuStrip.cs
- QueryStringParameter.cs
- EnterpriseServicesHelper.cs
- RegularExpressionValidator.cs
- Registration.cs
- ContentType.cs
- XmlElementAttributes.cs
- ResolveCriteriaCD1.cs
- Line.cs
- IndexOutOfRangeException.cs
- SuppressIldasmAttribute.cs
- LiteralControl.cs
- FixedTextContainer.cs
- ScrollViewerAutomationPeer.cs
- WindowsImpersonationContext.cs
- HttpModuleCollection.cs
- WebServiceErrorEvent.cs
- XmlSchemaCompilationSettings.cs
- XmlSchema.cs
- CallbackCorrelationInitializer.cs
- XmlSchemaImport.cs
- DiagnosticsConfiguration.cs
- StateMachineExecutionState.cs
- behaviorssection.cs
- ListViewContainer.cs
- DataRelationPropertyDescriptor.cs
- PathParser.cs
- PageRequestManager.cs
- UriSection.cs
- TextRunCache.cs
- AttributeQuery.cs
- Membership.cs
- Model3DCollection.cs
- FixedSOMGroup.cs
- MultiAsyncResult.cs