Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryReader.cs
- CodeSnippetCompileUnit.cs
- InkCanvasSelectionAdorner.cs
- DataServiceKeyAttribute.cs
- GenericPrincipal.cs
- JsonMessageEncoderFactory.cs
- PropertyPanel.cs
- QilParameter.cs
- LabelLiteral.cs
- CalendarDay.cs
- SchemaExporter.cs
- FreeFormDesigner.cs
- PointAnimationUsingKeyFrames.cs
- SHA1Cng.cs
- HashAlgorithm.cs
- prompt.cs
- SchemaSetCompiler.cs
- CatalogZoneBase.cs
- StickyNoteAnnotations.cs
- DockingAttribute.cs
- SettingsPropertyNotFoundException.cs
- ProgressBarAutomationPeer.cs
- ArcSegment.cs
- AdditionalEntityFunctions.cs
- ConnectorDragDropGlyph.cs
- PropertyRef.cs
- ZipIORawDataFileBlock.cs
- updatecommandorderer.cs
- OrderingInfo.cs
- ServiceDescription.cs
- KeyValueSerializer.cs
- GetFileNameResult.cs
- StatusBar.cs
- OpenFileDialog.cs
- ISSmlParser.cs
- InvalidOleVariantTypeException.cs
- IPEndPoint.cs
- OverlappedContext.cs
- OledbConnectionStringbuilder.cs
- EUCJPEncoding.cs
- ADMembershipUser.cs
- CodeConditionStatement.cs
- WCFModelStrings.Designer.cs
- ThemeInfoAttribute.cs
- QilStrConcat.cs
- TagPrefixAttribute.cs
- QilSortKey.cs
- TreeIterator.cs
- ProfileGroupSettingsCollection.cs
- VariableDesigner.xaml.cs
- XmlNodeChangedEventManager.cs
- FileClassifier.cs
- HMACSHA256.cs
- WebPartManager.cs
- ListControl.cs
- WindowsProgressbar.cs
- ConditionalDesigner.cs
- ListViewCommandEventArgs.cs
- BindingObserver.cs
- StyleSheetDesigner.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- WrappedIUnknown.cs
- InternalMappingException.cs
- MultipartContentParser.cs
- FieldDescriptor.cs
- SigningCredentials.cs
- IISUnsafeMethods.cs
- prompt.cs
- UpdateException.cs
- RemoteWebConfigurationHostServer.cs
- GridViewCancelEditEventArgs.cs
- RemoteDebugger.cs
- RotateTransform3D.cs
- ImportedNamespaceContextItem.cs
- ToolStripDropDownClosingEventArgs.cs
- FieldInfo.cs
- PropertyMetadata.cs
- URI.cs
- UniqueConstraint.cs
- Encoder.cs
- EventLogEntryCollection.cs
- WinFormsSpinner.cs
- ScriptRegistrationManager.cs
- ThrowHelper.cs
- TreeNodeBindingCollection.cs
- UnknownBitmapDecoder.cs
- ConstraintStruct.cs
- TrackBar.cs
- FacetChecker.cs
- _LazyAsyncResult.cs
- Panel.cs
- CharStorage.cs
- ClonableStack.cs
- FastEncoder.cs
- FormParameter.cs
- DetailsViewInsertEventArgs.cs
- DataGridItemEventArgs.cs
- LeafCellTreeNode.cs
- DataServiceConfiguration.cs
- XmlSchemaCompilationSettings.cs