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
- SqlSupersetValidator.cs
- PackageProperties.cs
- OdbcRowUpdatingEvent.cs
- SmtpClient.cs
- CodeNamespaceImportCollection.cs
- TailPinnedEventArgs.cs
- ExpressionNormalizer.cs
- FunctionCommandText.cs
- ConnectionManagementElement.cs
- clipboard.cs
- TheQuery.cs
- DataGridViewIntLinkedList.cs
- DrawToolTipEventArgs.cs
- AmbientProperties.cs
- WebBrowserUriTypeConverter.cs
- BamlBinaryWriter.cs
- PathData.cs
- HelpProvider.cs
- SHA384.cs
- ColumnReorderedEventArgs.cs
- LassoSelectionBehavior.cs
- OdbcPermission.cs
- FirstQueryOperator.cs
- PropertyDescriptor.cs
- ErrorProvider.cs
- HierarchicalDataBoundControlAdapter.cs
- InkCanvasInnerCanvas.cs
- DeclaredTypeValidatorAttribute.cs
- LocalizableResourceBuilder.cs
- XmlILConstructAnalyzer.cs
- TypeRestriction.cs
- XPathAncestorQuery.cs
- XPathItem.cs
- WebPartActionVerb.cs
- DataGridCellEditEndingEventArgs.cs
- BaseCodePageEncoding.cs
- RoleGroup.cs
- BuildProviderCollection.cs
- Stroke.cs
- XmlQueryContext.cs
- TypedReference.cs
- RightsManagementEncryptedStream.cs
- HyperLink.cs
- SortQuery.cs
- Evidence.cs
- EnumMember.cs
- NetworkInterface.cs
- EntityClassGenerator.cs
- CalendarTable.cs
- AnnotationStore.cs
- DynamicActionMessageFilter.cs
- WorkflowMarkupSerializerMapping.cs
- ListenerSessionConnection.cs
- AnimationClock.cs
- DesignerActionMethodItem.cs
- Viewport2DVisual3D.cs
- AnyAllSearchOperator.cs
- ComponentEvent.cs
- PageAsyncTask.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TextMetrics.cs
- KeyboardDevice.cs
- XmlSchemaAnnotated.cs
- StringReader.cs
- SpellerError.cs
- ContainerParaClient.cs
- MachinePropertyVariants.cs
- InstanceDataCollectionCollection.cs
- SingleStorage.cs
- ResourceExpression.cs
- DmlSqlGenerator.cs
- ReadOnlyDataSourceView.cs
- RtfToXamlReader.cs
- SubMenuStyleCollection.cs
- HelpKeywordAttribute.cs
- SessionParameter.cs
- Matrix3DConverter.cs
- GridViewDeleteEventArgs.cs
- NumericUpDown.cs
- SymLanguageType.cs
- AssemblyCollection.cs
- bindurihelper.cs
- SqlCaseSimplifier.cs
- UnsafeNativeMethods.cs
- ScrollPatternIdentifiers.cs
- HandlerFactoryWrapper.cs
- TypeSystemProvider.cs
- SwitchElementsCollection.cs
- SecurityCriticalDataForSet.cs
- DbTransaction.cs
- Dispatcher.cs
- AutomationPropertyInfo.cs
- CompositeControl.cs
- FontDialog.cs
- BufferBuilder.cs
- WindowsSysHeader.cs
- XmlSchemaImport.cs
- ImpersonateTokenRef.cs
- SecurityResources.cs
- ServiceDescriptionData.cs