Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlConvert.cs
- ApplicationFileCodeDomTreeGenerator.cs
- LogEntryHeaderv1Deserializer.cs
- AlphaSortedEnumConverter.cs
- DrawingVisual.cs
- TextTreeText.cs
- PageAsyncTaskManager.cs
- LinkDescriptor.cs
- _AcceptOverlappedAsyncResult.cs
- SqlTrackingQuery.cs
- RowUpdatedEventArgs.cs
- SplitterPanel.cs
- AssociationTypeEmitter.cs
- ListViewAutomationPeer.cs
- BitmapCodecInfoInternal.cs
- login.cs
- CommandEventArgs.cs
- activationcontext.cs
- SecureEnvironment.cs
- BitmapDecoder.cs
- CompositeActivityTypeDescriptorProvider.cs
- ObjectDisposedException.cs
- WmpBitmapEncoder.cs
- FormattedTextSymbols.cs
- PolygonHotSpot.cs
- DataColumnPropertyDescriptor.cs
- Throw.cs
- SocketElement.cs
- ExpressionDumper.cs
- ListenUriMode.cs
- MarkupCompilePass2.cs
- ToolStripArrowRenderEventArgs.cs
- Deflater.cs
- InternalTransaction.cs
- BitmapEffectGroup.cs
- FixedSOMPage.cs
- x509utils.cs
- ClientProtocol.cs
- WindowsContainer.cs
- WebPartHeaderCloseVerb.cs
- CompModSwitches.cs
- TypeResolvingOptions.cs
- FormsAuthenticationEventArgs.cs
- CatalogPart.cs
- GridViewRow.cs
- TableHeaderCell.cs
- ZoomPercentageConverter.cs
- BaseProcessor.cs
- EasingKeyFrames.cs
- XmlSchemaObjectCollection.cs
- HyperLinkColumn.cs
- PassportAuthenticationEventArgs.cs
- TextServicesContext.cs
- PrivilegedConfigurationManager.cs
- AccessText.cs
- ItemCollectionEditor.cs
- UpdateManifestForBrowserApplication.cs
- Group.cs
- XmlNodeChangedEventArgs.cs
- BinHexEncoder.cs
- FontStretchConverter.cs
- SecurityContextTokenCache.cs
- XmlReaderDelegator.cs
- TypeRefElement.cs
- PlaceHolder.cs
- EditorPart.cs
- InfoCardXmlSerializer.cs
- AppSettings.cs
- WeakReadOnlyCollection.cs
- PauseStoryboard.cs
- ServiceModelExtensionCollectionElement.cs
- PolicyLevel.cs
- RequestBringIntoViewEventArgs.cs
- MimeObjectFactory.cs
- updatecommandorderer.cs
- WpfMemberInvoker.cs
- MsmqOutputSessionChannel.cs
- Transform3D.cs
- MemoryStream.cs
- QilTargetType.cs
- PageSettings.cs
- Matrix3DConverter.cs
- HostedTcpTransportManager.cs
- CheckedPointers.cs
- SystemEvents.cs
- RegistryConfigurationProvider.cs
- _OSSOCK.cs
- KeyEvent.cs
- WindowsToolbarAsMenu.cs
- RowParagraph.cs
- PageRequestManager.cs
- LinkedResource.cs
- OutputCacheSection.cs
- AssemblyResourceLoader.cs
- Attributes.cs
- TableRowCollection.cs
- RelAssertionDirectKeyIdentifierClause.cs
- QueueProcessor.cs
- GeneralTransformGroup.cs
- CatalogZone.cs