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 / TypeToken.cs / 1 / TypeToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: TypeToken ** ** ** Purpose: Represents a Class to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Threading; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct TypeToken { public static readonly TypeToken Empty = new TypeToken(); internal int m_class; #if false public TypeToken() { m_class=0; } #endif internal TypeToken(int str) { m_class=str; } public int Token { get { return m_class; } } public override int GetHashCode() { return m_class; } public override bool Equals(Object obj) { if (obj is TypeToken) return Equals((TypeToken)obj); else return false; } public bool Equals(TypeToken obj) { return obj.m_class == m_class; } public static bool operator ==(TypeToken a, TypeToken b) { return a.Equals(b); } public static bool operator !=(TypeToken a, TypeToken b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: TypeToken ** ** ** Purpose: Represents a Class to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Threading; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct TypeToken { public static readonly TypeToken Empty = new TypeToken(); internal int m_class; #if false public TypeToken() { m_class=0; } #endif internal TypeToken(int str) { m_class=str; } public int Token { get { return m_class; } } public override int GetHashCode() { return m_class; } public override bool Equals(Object obj) { if (obj is TypeToken) return Equals((TypeToken)obj); else return false; } public bool Equals(TypeToken obj) { return obj.m_class == m_class; } public static bool operator ==(TypeToken a, TypeToken b) { return a.Equals(b); } public static bool operator !=(TypeToken a, TypeToken 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
- SafeFileMapViewHandle.cs
- XmlNamespaceMapping.cs
- EdmItemCollection.cs
- RegistryConfigurationProvider.cs
- ImportedNamespaceContextItem.cs
- CookielessHelper.cs
- coordinatorscratchpad.cs
- StringComparer.cs
- DictionarySectionHandler.cs
- TypedReference.cs
- XslAst.cs
- GridViewRowPresenterBase.cs
- EngineSiteSapi.cs
- CultureTable.cs
- HtmlTableRowCollection.cs
- RegexCapture.cs
- SqlRewriteScalarSubqueries.cs
- DateTimeOffsetConverter.cs
- QueryExpr.cs
- RenderDataDrawingContext.cs
- BamlWriter.cs
- GroupItemAutomationPeer.cs
- TranslateTransform.cs
- ConfigurationValue.cs
- CompiledAction.cs
- InstanceCreationEditor.cs
- DashStyle.cs
- SoapConverter.cs
- SqlFunctionAttribute.cs
- DataPagerFieldCollection.cs
- GridViewRowPresenterBase.cs
- MapPathBasedVirtualPathProvider.cs
- DeleteMemberBinder.cs
- SQLGuid.cs
- KeyTimeConverter.cs
- Propagator.cs
- DataFieldEditor.cs
- PageParserFilter.cs
- smtppermission.cs
- ArrangedElementCollection.cs
- BamlBinaryWriter.cs
- WindowsSysHeader.cs
- DataGridViewRowsAddedEventArgs.cs
- InterleavedZipPartStream.cs
- BamlTreeUpdater.cs
- TransformDescriptor.cs
- DoubleLink.cs
- HttpHandlerActionCollection.cs
- StringStorage.cs
- PersonalizationStateInfo.cs
- PreviewPageInfo.cs
- RouteData.cs
- SHA512Managed.cs
- TableLayoutPanelCellPosition.cs
- SplashScreen.cs
- ListSourceHelper.cs
- StreamUpgradeAcceptor.cs
- GC.cs
- RSAPKCS1SignatureDeformatter.cs
- DbConnectionPool.cs
- TableColumn.cs
- RegistryKey.cs
- ReadOnlyObservableCollection.cs
- AutomationElement.cs
- FontDifferentiator.cs
- PackagePartCollection.cs
- NetworkAddressChange.cs
- ProcessThreadDesigner.cs
- XmlSchemaSet.cs
- PathGradientBrush.cs
- TraceXPathNavigator.cs
- CSharpCodeProvider.cs
- DataGridDesigner.cs
- ReadWriteControlDesigner.cs
- DataSourceViewSchemaConverter.cs
- DataGridLinkButton.cs
- ToolbarAUtomationPeer.cs
- TextCompositionManager.cs
- ByeMessageCD1.cs
- OdbcFactory.cs
- AlignmentXValidation.cs
- HttpModuleActionCollection.cs
- CheckBox.cs
- XpsViewerException.cs
- PrintPageEvent.cs
- HttpListenerException.cs
- NativeMethods.cs
- PixelFormatConverter.cs
- FixedSOMTextRun.cs
- TypeUsageBuilder.cs
- TraceSection.cs
- DiffuseMaterial.cs
- CodeDomConfigurationHandler.cs
- FactoryRecord.cs
- EntityKeyElement.cs
- CurrentTimeZone.cs
- InstanceCompleteException.cs
- ValidatorAttribute.cs
- loginstatus.cs
- WindowsTooltip.cs