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
- Scripts.cs
- MediaCommands.cs
- AffineTransform3D.cs
- HtmlInputRadioButton.cs
- _AutoWebProxyScriptHelper.cs
- SqlProviderServices.cs
- NavigationCommands.cs
- BehaviorEditorPart.cs
- CfgArc.cs
- ParallelDesigner.xaml.cs
- Decimal.cs
- TripleDESCryptoServiceProvider.cs
- WebConfigurationHost.cs
- QilScopedVisitor.cs
- UriTemplateDispatchFormatter.cs
- StateWorkerRequest.cs
- Message.cs
- CapabilitiesPattern.cs
- StickyNoteContentControl.cs
- _ListenerResponseStream.cs
- HttpListenerRequestTraceRecord.cs
- MessageVersion.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- BufferBuilder.cs
- Int16Animation.cs
- SecurityCriticalDataForSet.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- UrlMapping.cs
- CompiledXpathExpr.cs
- IntPtr.cs
- RelationshipSet.cs
- MemoryStream.cs
- BasicExpressionVisitor.cs
- XmlWriterSettings.cs
- QueryHandler.cs
- _SslStream.cs
- DataServiceClientException.cs
- RemotingAttributes.cs
- TaskFormBase.cs
- Compiler.cs
- UntypedNullExpression.cs
- TextContainer.cs
- RemotingAttributes.cs
- _IPv6Address.cs
- FixedPage.cs
- TabPanel.cs
- Rectangle.cs
- GridPattern.cs
- HttpException.cs
- TagPrefixInfo.cs
- EventTrigger.cs
- PlatformNotSupportedException.cs
- ErrorRuntimeConfig.cs
- EventTrigger.cs
- ProxyAttribute.cs
- DataGridViewTextBoxEditingControl.cs
- RowUpdatedEventArgs.cs
- UserPersonalizationStateInfo.cs
- SizeF.cs
- ImageListImageEditor.cs
- AssertFilter.cs
- InputQueue.cs
- MulticastOption.cs
- DistinctQueryOperator.cs
- FormatterConverter.cs
- VariableModifiersHelper.cs
- ProviderSettings.cs
- ComProxy.cs
- CacheModeValueSerializer.cs
- SQLInt32.cs
- XPathChildIterator.cs
- Evaluator.cs
- Matrix3D.cs
- SchemaManager.cs
- TextDecoration.cs
- DecimalAnimation.cs
- AsmxEndpointPickerExtension.cs
- DefaultTraceListener.cs
- QuaternionValueSerializer.cs
- WebPartConnectionsConfigureVerb.cs
- PenThread.cs
- SoapSchemaMember.cs
- WeakRefEnumerator.cs
- CacheSection.cs
- ApplicationException.cs
- HopperCache.cs
- QueryServiceConfigHandle.cs
- PackageRelationshipCollection.cs
- FixedTextContainer.cs
- SingleAnimationBase.cs
- MetadataElement.cs
- XmlCodeExporter.cs
- SettingsPropertyValue.cs
- propertytag.cs
- AttachedPropertiesService.cs
- webclient.cs
- PersistChildrenAttribute.cs
- RadioButtonBaseAdapter.cs
- XMLDiffLoader.cs
- RowToParametersTransformer.cs