Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebPartRestoreVerb.cs
- ChtmlTextWriter.cs
- HiddenFieldPageStatePersister.cs
- DataGridViewCellValidatingEventArgs.cs
- Misc.cs
- ChtmlSelectionListAdapter.cs
- WorkflowPersistenceService.cs
- Accessors.cs
- HandlerBase.cs
- OleDbCommandBuilder.cs
- CompositeCollection.cs
- MemberExpressionHelper.cs
- Baml2006Reader.cs
- DecimalConverter.cs
- StrokeCollectionDefaultValueFactory.cs
- GridView.cs
- FormsAuthenticationTicket.cs
- LinkedResource.cs
- ErrorWrapper.cs
- BaseConfigurationRecord.cs
- Timeline.cs
- RadioButtonStandardAdapter.cs
- WebPartMenuStyle.cs
- DefaultAssemblyResolver.cs
- UIAgentMonitor.cs
- BuildProvidersCompiler.cs
- OuterGlowBitmapEffect.cs
- Int16.cs
- StyleXamlParser.cs
- StorageAssociationSetMapping.cs
- LeftCellWrapper.cs
- Grant.cs
- PatternMatcher.cs
- RowVisual.cs
- EncoderParameter.cs
- ImageCodecInfoPrivate.cs
- RtfControls.cs
- ProvideValueServiceProvider.cs
- PanelStyle.cs
- GlyphRunDrawing.cs
- SystemThemeKey.cs
- MD5CryptoServiceProvider.cs
- HtmlShim.cs
- CounterCreationDataCollection.cs
- KoreanLunisolarCalendar.cs
- Span.cs
- ValidatorCompatibilityHelper.cs
- SqlAggregateChecker.cs
- RawStylusInputCustomData.cs
- CssTextWriter.cs
- XmlCountingReader.cs
- AppliesToBehaviorDecisionTable.cs
- SoapEnumAttribute.cs
- ConfigXmlAttribute.cs
- XmlIterators.cs
- SpotLight.cs
- XPathNodeInfoAtom.cs
- ApplicationServiceManager.cs
- MessageQueueTransaction.cs
- FtpWebRequest.cs
- PersonalizationStateInfoCollection.cs
- QualifiedId.cs
- ApplyImportsAction.cs
- XmlIgnoreAttribute.cs
- TableLayoutPanel.cs
- MouseBinding.cs
- SolidColorBrush.cs
- ProcessHostConfigUtils.cs
- TextElementEditingBehaviorAttribute.cs
- MessagePropertyVariants.cs
- SchemaConstraints.cs
- ApplicationTrust.cs
- ListViewGroup.cs
- SqlUserDefinedAggregateAttribute.cs
- SurrogateEncoder.cs
- _SSPISessionCache.cs
- StringUtil.cs
- ListViewGroup.cs
- KnownColorTable.cs
- ISAPIRuntime.cs
- MetafileHeaderWmf.cs
- SafeEventLogWriteHandle.cs
- Types.cs
- AnnotationService.cs
- WebServiceMethodData.cs
- SqlTypesSchemaImporter.cs
- MobileTemplatedControlDesigner.cs
- ParameterElement.cs
- __ConsoleStream.cs
- DataListItemCollection.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- PrintPreviewDialog.cs
- ReadContentAsBinaryHelper.cs
- VariableQuery.cs
- _AuthenticationState.cs
- NativeRecognizer.cs
- Int32CAMarshaler.cs
- ZipPackage.cs
- FacetChecker.cs
- DiagnosticTraceSchemas.cs