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
- CroppedBitmap.cs
- ObjectStateFormatter.cs
- XmlILStorageConverter.cs
- ETagAttribute.cs
- GenericUI.cs
- uribuilder.cs
- SectionUpdates.cs
- DataErrorValidationRule.cs
- CompositeActivityCodeGenerator.cs
- ScrollBarAutomationPeer.cs
- VariableQuery.cs
- PersistenceParticipant.cs
- Events.cs
- ScrollBarAutomationPeer.cs
- LookupNode.cs
- KeyInterop.cs
- __FastResourceComparer.cs
- Base64Encoder.cs
- ProfilePropertyNameValidator.cs
- ViewGenResults.cs
- HttpRequestCacheValidator.cs
- ValidatorUtils.cs
- TemplateBuilder.cs
- TypeToken.cs
- KeyPullup.cs
- Timer.cs
- MouseActionValueSerializer.cs
- InvalidBodyAccessException.cs
- ListMarkerSourceInfo.cs
- GenericsInstances.cs
- Listbox.cs
- XLinq.cs
- TargetConverter.cs
- OracleSqlParser.cs
- UrlAuthorizationModule.cs
- ContentHostHelper.cs
- StreamResourceInfo.cs
- AxWrapperGen.cs
- ResourcePool.cs
- DataObject.cs
- ZipFileInfo.cs
- AccessibleObject.cs
- Pair.cs
- HashCodeCombiner.cs
- CodeSubDirectory.cs
- DataDesignUtil.cs
- BatchWriter.cs
- WebPartEditorCancelVerb.cs
- NetworkCredential.cs
- ServerProtocol.cs
- ElementProxy.cs
- ChangeInterceptorAttribute.cs
- StatusBarItemAutomationPeer.cs
- FileRecordSequence.cs
- ISAPIRuntime.cs
- OleDbTransaction.cs
- SettingsAttributeDictionary.cs
- PointAnimation.cs
- GlyphElement.cs
- CacheOutputQuery.cs
- ClientFormsAuthenticationCredentials.cs
- WinEventWrap.cs
- SspiSafeHandles.cs
- SqlLiftIndependentRowExpressions.cs
- MessageQueuePermission.cs
- DataGridViewRowsRemovedEventArgs.cs
- OdbcPermission.cs
- CollectionCodeDomSerializer.cs
- SpecialFolderEnumConverter.cs
- MobileControlPersister.cs
- PnrpPermission.cs
- StackBuilderSink.cs
- StandardOleMarshalObject.cs
- NativeMethods.cs
- PartitionResolver.cs
- CalendarDay.cs
- RegistryDataKey.cs
- Cursor.cs
- ClientTargetCollection.cs
- CollectionDataContractAttribute.cs
- ApplicationManager.cs
- XmlSchemaAnnotated.cs
- autovalidator.cs
- TcpClientSocketManager.cs
- TagPrefixCollection.cs
- APCustomTypeDescriptor.cs
- HtmlWindow.cs
- sqlpipe.cs
- PlacementWorkspace.cs
- ProxyWebPartConnectionCollection.cs
- CodeTypeParameter.cs
- EllipseGeometry.cs
- TableProvider.cs
- SafeRightsManagementSessionHandle.cs
- ToolStripPanelRenderEventArgs.cs
- RelationalExpressions.cs
- _NegotiateClient.cs
- WinCategoryAttribute.cs
- TreeNodeStyle.cs
- ComponentGuaranteesAttribute.cs