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
- Normalization.cs
- ListComponentEditorPage.cs
- ChangesetResponse.cs
- LocalBuilder.cs
- RankException.cs
- SimpleType.cs
- FontFamily.cs
- ControllableStoryboardAction.cs
- _IPv4Address.cs
- TextElementCollectionHelper.cs
- DataGridViewCellLinkedList.cs
- X509RecipientCertificateClientElement.cs
- OdbcReferenceCollection.cs
- SetStoryboardSpeedRatio.cs
- RoutedEvent.cs
- SecurityHelper.cs
- SizeFConverter.cs
- _ProxyRegBlob.cs
- EventLogEntryCollection.cs
- TableRowsCollectionEditor.cs
- StreamResourceInfo.cs
- OpCodes.cs
- PauseStoryboard.cs
- XmlWriterTraceListener.cs
- WebConfigurationHost.cs
- SrgsSubset.cs
- ParseElementCollection.cs
- ObjectAssociationEndMapping.cs
- IntegerValidatorAttribute.cs
- LayoutTable.cs
- DynamicActionMessageFilter.cs
- ASCIIEncoding.cs
- SizeConverter.cs
- AddInAdapter.cs
- ConfigXmlCDataSection.cs
- QueryStringParameter.cs
- Region.cs
- TextEditorDragDrop.cs
- TableCellAutomationPeer.cs
- SByte.cs
- Mutex.cs
- Schedule.cs
- XXXInfos.cs
- XmlUrlResolver.cs
- DataBinding.cs
- HashRepartitionEnumerator.cs
- PenThread.cs
- SelectingProviderEventArgs.cs
- UIntPtr.cs
- TextEditorCopyPaste.cs
- DataGridPagerStyle.cs
- StrokeFIndices.cs
- PaintEvent.cs
- MessageAction.cs
- ObjectView.cs
- InvalidCardException.cs
- Point4DConverter.cs
- URL.cs
- CodeAttributeArgumentCollection.cs
- CryptoProvider.cs
- LogicalChannel.cs
- _ConnectOverlappedAsyncResult.cs
- Privilege.cs
- InlineObject.cs
- RecognizeCompletedEventArgs.cs
- RuleAttributes.cs
- CodeDomConfigurationHandler.cs
- DataFormat.cs
- NotifyInputEventArgs.cs
- ContractMapping.cs
- Activity.cs
- ThreadSafeList.cs
- Error.cs
- FixedSOMElement.cs
- BitmapEffectrendercontext.cs
- CheckBoxPopupAdapter.cs
- ToolStripStatusLabel.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- XmlDataSourceNodeDescriptor.cs
- PackageFilter.cs
- SocketSettings.cs
- AuthStoreRoleProvider.cs
- WorkflowInstanceRecord.cs
- FindCriteria11.cs
- CategoriesDocument.cs
- OleDbConnectionInternal.cs
- DataObject.cs
- EntityClientCacheEntry.cs
- HtmlInputControl.cs
- OracleException.cs
- StopStoryboard.cs
- ColumnHeaderConverter.cs
- _ConnectionGroup.cs
- XmlSerializerObjectSerializer.cs
- SpecularMaterial.cs
- MachineKey.cs
- OverlappedAsyncResult.cs
- ProxyAttribute.cs
- HttpFileCollection.cs
- NamespaceList.cs