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
- WsatRegistrationHeader.cs
- PersonalizableTypeEntry.cs
- StorageEntityContainerMapping.cs
- TextBoxView.cs
- AutoResetEvent.cs
- TableCellCollection.cs
- PropertyInfo.cs
- ByteStreamMessageEncoder.cs
- CornerRadius.cs
- MenuCommandService.cs
- SingleStorage.cs
- InheritanceContextHelper.cs
- ValidationErrorEventArgs.cs
- PopupEventArgs.cs
- GenericTextProperties.cs
- WindowsEditBoxRange.cs
- OperationSelectorBehavior.cs
- ISCIIEncoding.cs
- Size3DValueSerializer.cs
- MultipleViewProviderWrapper.cs
- WebReferencesBuildProvider.cs
- PageCache.cs
- FormsIdentity.cs
- WebServiceHost.cs
- IndexedString.cs
- Int64Animation.cs
- WebPartVerb.cs
- ExtensionQuery.cs
- CodeCastExpression.cs
- BindingListCollectionView.cs
- SoapExtensionReflector.cs
- XmlEntityReference.cs
- ProfileSettings.cs
- NumericUpDownAcceleration.cs
- TcpProcessProtocolHandler.cs
- StringUtil.cs
- OracleInfoMessageEventArgs.cs
- RemoteWebConfigurationHostServer.cs
- SelectionProcessor.cs
- BackgroundWorker.cs
- AutomationPropertyInfo.cs
- FieldNameLookup.cs
- WebPartHeaderCloseVerb.cs
- ExpressionSelection.cs
- PersonalizationAdministration.cs
- _Rfc2616CacheValidators.cs
- ResourceAttributes.cs
- SessionSwitchEventArgs.cs
- XamlFxTrace.cs
- UrlMappingsModule.cs
- Span.cs
- TableDetailsCollection.cs
- NativeMethods.cs
- HtmlUtf8RawTextWriter.cs
- ProfessionalColorTable.cs
- TextDecoration.cs
- DbConnectionClosed.cs
- Propagator.cs
- Point4D.cs
- DecimalAnimationUsingKeyFrames.cs
- _ScatterGatherBuffers.cs
- TableLayoutPanelDesigner.cs
- UnsafeNativeMethods.cs
- XmlFormatExtensionPointAttribute.cs
- _HelperAsyncResults.cs
- ForeignKeyFactory.cs
- ResourcePermissionBase.cs
- RegexFCD.cs
- TreeBuilderXamlTranslator.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WorkflowDesigner.cs
- ZipIOLocalFileBlock.cs
- SectionXmlInfo.cs
- EntityDataSourceMemberPath.cs
- SqlCommand.cs
- WriteFileContext.cs
- XsdBuildProvider.cs
- ServiceControllerDesigner.cs
- CodeCommentStatementCollection.cs
- TextProperties.cs
- MemberAssignment.cs
- AnnouncementEndpointElement.cs
- X509WindowsSecurityToken.cs
- CodeTypeDelegate.cs
- SplitterPanel.cs
- BaseDataBoundControlDesigner.cs
- Decoder.cs
- XmlSchemaSimpleTypeList.cs
- SystemInfo.cs
- AutomationPattern.cs
- GridViewDeletedEventArgs.cs
- SpoolingTask.cs
- ThicknessAnimationUsingKeyFrames.cs
- UpdateProgress.cs
- SqlBulkCopyColumnMappingCollection.cs
- X509Chain.cs
- ValidationRuleCollection.cs
- DrawingAttributesDefaultValueFactory.cs
- glyphs.cs
- QuaternionAnimationUsingKeyFrames.cs