Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HttpContext.cs
- NestedContainer.cs
- Light.cs
- DataException.cs
- MaterialGroup.cs
- DataServiceConfiguration.cs
- DropTarget.cs
- AttributedMetaModel.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- EntityViewContainer.cs
- ProfileGroupSettingsCollection.cs
- ActivationServices.cs
- WindowsGraphics2.cs
- InheritanceContextHelper.cs
- ListViewDataItem.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SecurityContext.cs
- CorrelationTokenTypeConvertor.cs
- EncodedStreamFactory.cs
- PlatformNotSupportedException.cs
- ObjectSecurity.cs
- InsufficientMemoryException.cs
- RegexInterpreter.cs
- TreeNodeConverter.cs
- RawStylusSystemGestureInputReport.cs
- _FixedSizeReader.cs
- Assert.cs
- RawStylusSystemGestureInputReport.cs
- HandlerMappingMemo.cs
- SQLString.cs
- GridViewDeletedEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- HwndSource.cs
- BindingOperations.cs
- SQLDoubleStorage.cs
- Matrix3D.cs
- HttpProfileBase.cs
- DataControlImageButton.cs
- util.cs
- TemplateEditingService.cs
- FixedFindEngine.cs
- RootContext.cs
- CodeAssignStatement.cs
- CanonicalXml.cs
- ScrollItemPatternIdentifiers.cs
- StandardBindingCollectionElement.cs
- TableLayoutSettings.cs
- XmlAtomicValue.cs
- ResourceManagerWrapper.cs
- XhtmlTextWriter.cs
- AudioException.cs
- SqlInternalConnection.cs
- ConfigurationStrings.cs
- EntityDataSourceEntityTypeFilterItem.cs
- SmiSettersStream.cs
- XmlConvert.cs
- Perspective.cs
- TrackBarRenderer.cs
- DatasetMethodGenerator.cs
- ExpandSegmentCollection.cs
- DataGridViewCellStyle.cs
- HuffCodec.cs
- SerializeAbsoluteContext.cs
- TypeInfo.cs
- IdentityHolder.cs
- InputScope.cs
- AspNetSynchronizationContext.cs
- AudioFileOut.cs
- RNGCryptoServiceProvider.cs
- TextHidden.cs
- TemplateKeyConverter.cs
- QilFunction.cs
- WebFormsRootDesigner.cs
- __Filters.cs
- NamedPipeConnectionPool.cs
- WebConfigurationManager.cs
- Propagator.Evaluator.cs
- SchemaElementDecl.cs
- Timer.cs
- PassportAuthenticationModule.cs
- ISFTagAndGuidCache.cs
- ellipse.cs
- RichTextBox.cs
- RoleManagerSection.cs
- SqlCharStream.cs
- XamlVector3DCollectionSerializer.cs
- WindowsGraphicsWrapper.cs
- CodeMemberEvent.cs
- WebControlsSection.cs
- LocatorBase.cs
- CurrentTimeZone.cs
- X509DefaultServiceCertificateElement.cs
- PageAsyncTaskManager.cs
- HtmlTable.cs
- SkinBuilder.cs
- XmlSerializerFaultFormatter.cs
- ISAPIApplicationHost.cs
- OneOfTypeConst.cs
- DictionaryCustomTypeDescriptor.cs