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
- Baml2006KeyRecord.cs
- ConnectorDragDropGlyph.cs
- BmpBitmapDecoder.cs
- ViewBox.cs
- GridErrorDlg.cs
- Stackframe.cs
- LocalizationParserHooks.cs
- SymLanguageType.cs
- SchemaCollectionCompiler.cs
- LogStore.cs
- ReleaseInstanceMode.cs
- GlyphRunDrawing.cs
- CodeGen.cs
- TextDecoration.cs
- DbConnectionPoolIdentity.cs
- OdbcUtils.cs
- DecimalStorage.cs
- ClientSettings.cs
- ActionItem.cs
- BindToObject.cs
- DecimalKeyFrameCollection.cs
- HuffCodec.cs
- WebPartZoneCollection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- AutomationInteropProvider.cs
- DataRelation.cs
- MessageEncodingBindingElementImporter.cs
- OwnerDrawPropertyBag.cs
- DrawListViewSubItemEventArgs.cs
- ScrollBarAutomationPeer.cs
- ParameterModifier.cs
- DoubleAnimationUsingPath.cs
- SystemDiagnosticsSection.cs
- FontClient.cs
- SqlUtils.cs
- ErrorHandler.cs
- Literal.cs
- BamlWriter.cs
- ApplicationContext.cs
- SingleConverter.cs
- MaskInputRejectedEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- CapabilitiesAssignment.cs
- DataControlField.cs
- SqlGenericUtil.cs
- Misc.cs
- BufferedGraphics.cs
- SecurityTokenSerializer.cs
- Listen.cs
- DiscoveryDocumentLinksPattern.cs
- SizeKeyFrameCollection.cs
- SwitchCase.cs
- IsolatedStorageFileStream.cs
- PathSegmentCollection.cs
- LinearKeyFrames.cs
- Vector3DCollectionValueSerializer.cs
- MergeFailedEvent.cs
- SqlCaseSimplifier.cs
- ContractUtils.cs
- ByteAnimationBase.cs
- TextEditorMouse.cs
- AnimationStorage.cs
- DigitalSignatureProvider.cs
- StringFormat.cs
- CodeMethodReturnStatement.cs
- ToolBar.cs
- HandledEventArgs.cs
- KeyEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- DesignerActionService.cs
- CodeObjectCreateExpression.cs
- WebPartCatalogAddVerb.cs
- IconBitmapDecoder.cs
- HttpRuntime.cs
- CancelEventArgs.cs
- TemplateBamlTreeBuilder.cs
- SqlLiftIndependentRowExpressions.cs
- SplineKeyFrames.cs
- SerialStream.cs
- ToolTipService.cs
- WindowsTreeView.cs
- SmtpTransport.cs
- PrtCap_Public_Simple.cs
- XmlSchemaException.cs
- StylusPointPropertyUnit.cs
- XmlSerializerAssemblyAttribute.cs
- ButtonRenderer.cs
- ModuleConfigurationInfo.cs
- ListViewItem.cs
- GPRECT.cs
- LinearKeyFrames.cs
- PrimitiveCodeDomSerializer.cs
- Point3DCollection.cs
- SingleObjectCollection.cs
- ThrowHelper.cs
- Storyboard.cs
- Interfaces.cs
- IconHelper.cs
- LazyTextWriterCreator.cs
- VisualBasicSettingsHandler.cs