Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Soap12ProtocolReflector.cs
- CodeBlockBuilder.cs
- PathFigureCollection.cs
- XslAst.cs
- PropertyInformation.cs
- CapabilitiesState.cs
- MailWriter.cs
- MD5CryptoServiceProvider.cs
- StrongNameUtility.cs
- HttpRequest.cs
- _TransmitFileOverlappedAsyncResult.cs
- BoundColumn.cs
- DotExpr.cs
- QilLoop.cs
- LoadedOrUnloadedOperation.cs
- DescendantOverDescendantQuery.cs
- CorrelationValidator.cs
- UIPermission.cs
- DiffuseMaterial.cs
- wgx_commands.cs
- ItemList.cs
- UnSafeCharBuffer.cs
- httpstaticobjectscollection.cs
- UsernameTokenFactoryCredential.cs
- CatalogZone.cs
- PeerContact.cs
- CheckBox.cs
- RelatedView.cs
- CoTaskMemHandle.cs
- UrlMappingsSection.cs
- InstalledFontCollection.cs
- TraceHandler.cs
- DateTime.cs
- DataObject.cs
- ProxyWebPartManager.cs
- KeyProperty.cs
- HashSet.cs
- CodeTypeParameter.cs
- Ipv6Element.cs
- DispatcherTimer.cs
- HtmlInputRadioButton.cs
- CreateRefExpr.cs
- CaseInsensitiveOrdinalStringComparer.cs
- OdbcConnectionFactory.cs
- RegexMatch.cs
- OleDbReferenceCollection.cs
- TextContainer.cs
- EventSource.cs
- MarshalByValueComponent.cs
- OutgoingWebRequestContext.cs
- ProviderSettingsCollection.cs
- AspNetSynchronizationContext.cs
- XmlDesigner.cs
- HtmlElementEventArgs.cs
- XhtmlStyleClass.cs
- BitStack.cs
- Brushes.cs
- TextMarkerSource.cs
- DataGridViewCellFormattingEventArgs.cs
- M3DUtil.cs
- DataGridLengthConverter.cs
- OneOfConst.cs
- IsolatedStorageFilePermission.cs
- RadioButtonPopupAdapter.cs
- KnownTypeDataContractResolver.cs
- HttpHandlersSection.cs
- Decoder.cs
- TemplateBindingExtensionConverter.cs
- PropertyDescriptors.cs
- HttpModuleActionCollection.cs
- WebSysDefaultValueAttribute.cs
- SymbolTable.cs
- XmlSchemaValidator.cs
- SizeConverter.cs
- HttpException.cs
- EditorPartChrome.cs
- Subtree.cs
- InvokeCompletedEventArgs.cs
- DetailsViewAutoFormat.cs
- WindowVisualStateTracker.cs
- ObjectListCommandsPage.cs
- Model3DCollection.cs
- UpdateException.cs
- ClientSettingsStore.cs
- TemplatedAdorner.cs
- SortableBindingList.cs
- TextDecorations.cs
- MenuItemCollection.cs
- DetailsViewPagerRow.cs
- MapPathBasedVirtualPathProvider.cs
- ImmutableObjectAttribute.cs
- MatrixTransform3D.cs
- SqlServices.cs
- DynamicQueryStringParameter.cs
- Int32Storage.cs
- BinaryCommonClasses.cs
- HtmlString.cs
- WorkflowNamespace.cs
- XmlNodeComparer.cs
- UserMapPath.cs