Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Triplet.cs
- DesignerCatalogPartChrome.cs
- EngineSiteSapi.cs
- Rect3DValueSerializer.cs
- ComPlusServiceHost.cs
- EntityWrapper.cs
- BinaryNegotiation.cs
- _AutoWebProxyScriptEngine.cs
- FontWeights.cs
- LayeredChannelFactory.cs
- WindowsGraphics2.cs
- BinaryNode.cs
- ViewRendering.cs
- UnsafeNativeMethods.cs
- X509ChainPolicy.cs
- ToolStripContentPanelDesigner.cs
- RubberbandSelector.cs
- TextTreeObjectNode.cs
- ResourceReferenceKeyNotFoundException.cs
- WebControlParameterProxy.cs
- SByteStorage.cs
- CqlParser.cs
- FilteredReadOnlyMetadataCollection.cs
- SaveFileDialog.cs
- PersonalizableAttribute.cs
- Task.cs
- OrderedEnumerableRowCollection.cs
- FontStyleConverter.cs
- RayHitTestParameters.cs
- ConfigXmlComment.cs
- PointLight.cs
- ToolStripSplitStackLayout.cs
- SmtpDigestAuthenticationModule.cs
- PeerSecurityHelpers.cs
- SelectionItemProviderWrapper.cs
- Conditional.cs
- TdsParserSafeHandles.cs
- XmlSchemaAll.cs
- EncryptedReference.cs
- QilGenerator.cs
- SmiTypedGetterSetter.cs
- ZoneMembershipCondition.cs
- ParentUndoUnit.cs
- SqlStatistics.cs
- Internal.cs
- NumberSubstitution.cs
- ClientApiGenerator.cs
- XmlMtomWriter.cs
- DataMemberListEditor.cs
- DocumentViewerHelper.cs
- GridViewCommandEventArgs.cs
- RadioButton.cs
- WindowsGraphicsWrapper.cs
- MachineKeyConverter.cs
- SiteMapDataSourceView.cs
- DocumentSchemaValidator.cs
- BitmapEffectCollection.cs
- Inline.cs
- DbMetaDataFactory.cs
- TraceEventCache.cs
- Range.cs
- MenuItem.cs
- DateTimeFormat.cs
- AssemblyLoader.cs
- clipboard.cs
- DefaultWorkflowSchedulerService.cs
- CheckBox.cs
- CodeParameterDeclarationExpression.cs
- Opcode.cs
- WmfPlaceableFileHeader.cs
- addressfiltermode.cs
- MarginsConverter.cs
- CacheVirtualItemsEvent.cs
- DecimalConstantAttribute.cs
- ToolStripControlHost.cs
- RegisteredScript.cs
- StyleSelector.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- RequestNavigateEventArgs.cs
- ValidationUtility.cs
- XmlnsDictionary.cs
- DocumentApplicationState.cs
- SystemMulticastIPAddressInformation.cs
- ReceiveCompletedEventArgs.cs
- MetafileHeader.cs
- LoadWorkflowAsyncResult.cs
- path.cs
- XmlImplementation.cs
- documentsequencetextcontainer.cs
- GetPageCompletedEventArgs.cs
- GeneratedContractType.cs
- RetriableClipboard.cs
- WebServiceClientProxyGenerator.cs
- MessageQueueException.cs
- ApplicationFileParser.cs
- OdbcHandle.cs
- CompilerTypeWithParams.cs
- HtmlTernaryTree.cs
- JapaneseLunisolarCalendar.cs
- CardSpaceSelector.cs