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
- MouseOverProperty.cs
- Helpers.cs
- returneventsaver.cs
- UnlockInstanceCommand.cs
- MaskedTextBoxTextEditor.cs
- ParameterExpression.cs
- FixedSchema.cs
- RelatedImageListAttribute.cs
- SecUtil.cs
- IgnoreFileBuildProvider.cs
- EnumerableCollectionView.cs
- ServiceDefaults.cs
- Hashtable.cs
- ActivationProxy.cs
- ExpressionBuilderContext.cs
- SortExpressionBuilder.cs
- DeviceSpecificChoice.cs
- ErrorTableItemStyle.cs
- OperationCanceledException.cs
- ScriptModule.cs
- EditorZoneBase.cs
- Logging.cs
- IPAddress.cs
- ChtmlPhoneCallAdapter.cs
- UIntPtr.cs
- ErrorFormatterPage.cs
- AxisAngleRotation3D.cs
- DBSqlParser.cs
- newitemfactory.cs
- basemetadatamappingvisitor.cs
- TextElementCollection.cs
- CellTreeNodeVisitors.cs
- IndexedGlyphRun.cs
- PackageStore.cs
- WorkflowDispatchContext.cs
- ADMembershipUser.cs
- OutputCacheSection.cs
- HtmlImage.cs
- RuntimeEnvironment.cs
- Attributes.cs
- ErrorsHelper.cs
- QuadTree.cs
- Comparer.cs
- FrameworkObject.cs
- XamlValidatingReader.cs
- Monitor.cs
- WindowsStartMenu.cs
- PermissionSetTriple.cs
- TextBox.cs
- CodeCompiler.cs
- PageTheme.cs
- AnonymousIdentificationSection.cs
- CodeMethodReturnStatement.cs
- Int16AnimationUsingKeyFrames.cs
- ProxyHelper.cs
- DataKeyArray.cs
- ISAPIRuntime.cs
- CharConverter.cs
- OutputCacheProfileCollection.cs
- MethodSet.cs
- DbSource.cs
- XmlDataImplementation.cs
- TypeBrowser.xaml.cs
- Literal.cs
- Token.cs
- DefaultCommandExtensionCallback.cs
- SafeSecurityHandles.cs
- TextPointerBase.cs
- RemoteWebConfigurationHostServer.cs
- ImageMap.cs
- ListItem.cs
- SpellerHighlightLayer.cs
- SettingsBindableAttribute.cs
- NotificationContext.cs
- ToolStripGripRenderEventArgs.cs
- Int16.cs
- HTMLTextWriter.cs
- Crypto.cs
- EncoderParameter.cs
- StringArrayConverter.cs
- DocComment.cs
- TransformGroup.cs
- PermissionSetEnumerator.cs
- ResourceProviderFactory.cs
- WCFServiceClientProxyGenerator.cs
- ContextProperty.cs
- BaseInfoTable.cs
- ZoneButton.cs
- SingleConverter.cs
- OleDbMetaDataFactory.cs
- PathFigureCollectionConverter.cs
- ZipFileInfoCollection.cs
- SizeKeyFrameCollection.cs
- CollectionConverter.cs
- HwndMouseInputProvider.cs
- ControlAdapter.cs
- IsolationInterop.cs
- MetadataPropertyvalue.cs
- ColumnResizeUndoUnit.cs
- CorePropertiesFilter.cs