Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- StringTraceRecord.cs
- PtsHelper.cs
- AsymmetricKeyExchangeDeformatter.cs
- VersionValidator.cs
- PersonalizationDictionary.cs
- XmlWrappingWriter.cs
- HttpHandlersSection.cs
- DataQuery.cs
- InternalReceiveMessage.cs
- FileResponseElement.cs
- ExpressionBindingsDialog.cs
- ResourcesBuildProvider.cs
- FocusChangedEventArgs.cs
- DataGridViewRowConverter.cs
- StaticTextPointer.cs
- FaultFormatter.cs
- VectorAnimation.cs
- DbConnectionStringBuilder.cs
- PageClientProxyGenerator.cs
- TrustManagerPromptUI.cs
- DesignerFrame.cs
- Nodes.cs
- ReadOnlyCollection.cs
- DataGridViewControlCollection.cs
- streamingZipPartStream.cs
- ResourcePart.cs
- SqlNodeAnnotations.cs
- Dispatcher.cs
- XpsFixedDocumentReaderWriter.cs
- bidPrivateBase.cs
- SerializationTrace.cs
- HttpListenerResponse.cs
- WrapperEqualityComparer.cs
- SingleObjectCollection.cs
- HttpModuleAction.cs
- LocatorPart.cs
- BitStream.cs
- DataTableReaderListener.cs
- StateItem.cs
- CodeTypeParameterCollection.cs
- _AuthenticationState.cs
- XmlEntityReference.cs
- WebPartCloseVerb.cs
- RecognitionEventArgs.cs
- MetadataWorkspace.cs
- SudsWriter.cs
- PropertyIDSet.cs
- PathGradientBrush.cs
- XmlSchemaParticle.cs
- WorkItem.cs
- DrawToolTipEventArgs.cs
- ThemeableAttribute.cs
- ScriptManager.cs
- SimpleType.cs
- WebPartVerb.cs
- Operators.cs
- QueryResponse.cs
- EdmEntityTypeAttribute.cs
- DataObjectSettingDataEventArgs.cs
- AxisAngleRotation3D.cs
- PassportAuthenticationEventArgs.cs
- httpserverutility.cs
- MexNamedPipeBindingElement.cs
- ConfigXmlText.cs
- DataServiceQueryContinuation.cs
- HtmlAnchor.cs
- DoubleAnimationUsingKeyFrames.cs
- CollectionDataContractAttribute.cs
- NamespaceList.cs
- Binding.cs
- FullTextState.cs
- UInt16.cs
- HyperLinkStyle.cs
- ACE.cs
- wgx_commands.cs
- MissingSatelliteAssemblyException.cs
- JsonWriter.cs
- StorageFunctionMapping.cs
- CompositionAdorner.cs
- MemberCollection.cs
- SiblingIterators.cs
- RepeaterItemEventArgs.cs
- CookielessHelper.cs
- SessionParameter.cs
- ExpressionConverter.cs
- DoubleStorage.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ToolBarPanel.cs
- DataContractJsonSerializerOperationBehavior.cs
- XmlSubtreeReader.cs
- WebHttpBinding.cs
- ServiceDesigner.cs
- MethodBody.cs
- CryptoKeySecurity.cs
- SqlDataSourceQueryConverter.cs
- DataGridViewSelectedRowCollection.cs
- SqlProcedureAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- MouseGesture.cs
- ClientCultureInfo.cs