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
- ReferenceConverter.cs
- XamlDesignerSerializationManager.cs
- LogicalCallContext.cs
- SoapServerMethod.cs
- TemplateParser.cs
- CollectionViewProxy.cs
- RegexNode.cs
- StackSpiller.Bindings.cs
- AsyncOperation.cs
- ToolStripPanelDesigner.cs
- WebPartZoneBase.cs
- TypeGenericEnumerableViewSchema.cs
- AttributeCollection.cs
- DataGridrowEditEndingEventArgs.cs
- CultureTable.cs
- ContextMarshalException.cs
- LessThan.cs
- AnnotationComponentManager.cs
- NGCUIElementCollectionSerializerAsync.cs
- XmlAttributeProperties.cs
- HMACSHA512.cs
- DeferredSelectedIndexReference.cs
- SerializableTypeCodeDomSerializer.cs
- OperatingSystem.cs
- AuthenticatingEventArgs.cs
- ItemCheckEvent.cs
- RoleGroupCollection.cs
- DifferencingCollection.cs
- TimeSpanStorage.cs
- namescope.cs
- HttpCookiesSection.cs
- DecoderNLS.cs
- SelectionPatternIdentifiers.cs
- CodeAttributeDeclarationCollection.cs
- AutomationIdentifier.cs
- OleCmdHelper.cs
- BindableTemplateBuilder.cs
- Timer.cs
- Label.cs
- MbpInfo.cs
- PerformanceCounterPermissionAttribute.cs
- Journaling.cs
- Literal.cs
- ContextMenu.cs
- PaperSource.cs
- RenderDataDrawingContext.cs
- odbcmetadatacollectionnames.cs
- regiisutil.cs
- MsmqMessageSerializationFormat.cs
- ScriptHandlerFactory.cs
- UrlMappingCollection.cs
- RotateTransform.cs
- WebOperationContext.cs
- FormsIdentity.cs
- SchemaImporterExtension.cs
- OutArgument.cs
- RSAPKCS1SignatureDeformatter.cs
- Size3D.cs
- PtsHelper.cs
- FlowSwitch.cs
- CompilationUtil.cs
- Region.cs
- PageRanges.cs
- RSAPKCS1SignatureFormatter.cs
- ViewGenerator.cs
- HandlerFactoryCache.cs
- Constraint.cs
- RegisteredExpandoAttribute.cs
- XmlLinkedNode.cs
- DispatcherBuilder.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- shaperfactory.cs
- cookiecontainer.cs
- DocumentXPathNavigator.cs
- OracleParameterCollection.cs
- KeyGesture.cs
- AtlasWeb.Designer.cs
- ScrollBarRenderer.cs
- DefaultDialogButtons.cs
- DecryptedHeader.cs
- BordersPage.cs
- StoreConnection.cs
- SqlBuilder.cs
- CompressedStack.cs
- HMACSHA256.cs
- ManagedFilter.cs
- SpellerHighlightLayer.cs
- DynamicValidatorEventArgs.cs
- ModifiableIteratorCollection.cs
- SafeTimerHandle.cs
- PreviewKeyDownEventArgs.cs
- MILUtilities.cs
- CalloutQueueItem.cs
- PresentationAppDomainManager.cs
- CompilationUtil.cs
- URLAttribute.cs
- ContainerActivationHelper.cs
- GetPageCompletedEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- MultipartIdentifier.cs