Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / TypeToken.cs / 1305376 / 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
- RestClientProxyHandler.cs
- RequestContext.cs
- Compiler.cs
- CopyAttributesAction.cs
- IsolatedStorageFileStream.cs
- TypeUsage.cs
- SystemKeyConverter.cs
- VisualTarget.cs
- TranslateTransform.cs
- ThreadSafeMessageFilterTable.cs
- CroppedBitmap.cs
- MultilineStringEditor.cs
- HandledEventArgs.cs
- ProviderCollection.cs
- HttpHandlerAction.cs
- XmlAttributeOverrides.cs
- ClientSideQueueItem.cs
- ApplicationServiceHelper.cs
- SymbolType.cs
- UIElement3D.cs
- Style.cs
- Bitmap.cs
- AppSettingsReader.cs
- HierarchicalDataTemplate.cs
- CreateParams.cs
- FontCacheLogic.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ThousandthOfEmRealPoints.cs
- ImportException.cs
- ListViewGroup.cs
- PrePostDescendentsWalker.cs
- CreateUserWizard.cs
- BaseValidatorDesigner.cs
- StyleCollection.cs
- ValueUtilsSmi.cs
- QueryPageSettingsEventArgs.cs
- FeatureSupport.cs
- RMEnrollmentPage3.cs
- As.cs
- ThumbAutomationPeer.cs
- HttpGetProtocolReflector.cs
- DesignerActionUI.cs
- ConsoleEntryPoint.cs
- GeneralTransformGroup.cs
- DesignerTransactionCloseEvent.cs
- XslCompiledTransform.cs
- ZoneMembershipCondition.cs
- PhonemeConverter.cs
- SchemaNamespaceManager.cs
- ToolStripDropDownClosingEventArgs.cs
- TypedRowHandler.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PrivacyNoticeBindingElementImporter.cs
- followingsibling.cs
- PairComparer.cs
- COAUTHINFO.cs
- ParameterToken.cs
- PKCS1MaskGenerationMethod.cs
- InputProviderSite.cs
- OracleInternalConnection.cs
- SqlDataReader.cs
- SendMessageRecord.cs
- MatrixAnimationUsingPath.cs
- Stroke2.cs
- DrawingServices.cs
- WebServiceMethodData.cs
- control.ime.cs
- CodeGenerator.cs
- EventMappingSettingsCollection.cs
- PropertyInformationCollection.cs
- LogWriteRestartAreaState.cs
- EventLogEntryCollection.cs
- RegexParser.cs
- UriTemplateClientFormatter.cs
- BufferBuilder.cs
- ContextBase.cs
- DesignerProperties.cs
- FontWeight.cs
- DataBoundControlHelper.cs
- ConcurrentStack.cs
- ToolStripRendererSwitcher.cs
- BrowserTree.cs
- ReadOnlyTernaryTree.cs
- ReaderWriterLock.cs
- StrokeNodeOperations.cs
- PageCodeDomTreeGenerator.cs
- EFTableProvider.cs
- RuntimeEnvironment.cs
- AsyncDataRequest.cs
- RelationshipWrapper.cs
- UnsafeNativeMethods.cs
- AttributeData.cs
- MasterPage.cs
- BamlLocalizableResourceKey.cs
- AutoScrollHelper.cs
- OleDbTransaction.cs
- TaskScheduler.cs
- HttpWriter.cs
- TextTreeDeleteContentUndoUnit.cs
- sqlstateclientmanager.cs