Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- _AutoWebProxyScriptWrapper.cs
- XamlSerializerUtil.cs
- ActivityExecutionContextCollection.cs
- Quad.cs
- DataMemberConverter.cs
- SafeSystemMetrics.cs
- KeyValueSerializer.cs
- GridView.cs
- PropertyInfoSet.cs
- IdnElement.cs
- DataComponentMethodGenerator.cs
- _KerberosClient.cs
- XmlConverter.cs
- Stream.cs
- ConnectionProviderAttribute.cs
- MenuCommand.cs
- AuthorizationRule.cs
- RijndaelManagedTransform.cs
- Quad.cs
- ConsoleCancelEventArgs.cs
- DataBindingList.cs
- BaseDataBoundControl.cs
- BuildProviderAppliesToAttribute.cs
- OleDbConnectionFactory.cs
- BindingList.cs
- MarkupWriter.cs
- DataRowChangeEvent.cs
- AdditionalEntityFunctions.cs
- HashMembershipCondition.cs
- HostingEnvironmentSection.cs
- ReadContentAsBinaryHelper.cs
- SequenceQuery.cs
- ObjectItemAttributeAssemblyLoader.cs
- ElementHost.cs
- lengthconverter.cs
- DbModificationCommandTree.cs
- InfoCardAsymmetricCrypto.cs
- RemotingSurrogateSelector.cs
- ObjectDataSourceView.cs
- SourceFileBuildProvider.cs
- NetMsmqBinding.cs
- CellIdBoolean.cs
- MSAAWinEventWrap.cs
- webeventbuffer.cs
- X509Extension.cs
- FormCollection.cs
- DebugView.cs
- HandlerFactoryWrapper.cs
- WorkflowView.cs
- SafeNativeMethodsMilCoreApi.cs
- PagesSection.cs
- ContourSegment.cs
- DBParameter.cs
- SqlXml.cs
- ToolStripItemDataObject.cs
- EntityClientCacheKey.cs
- SemaphoreFullException.cs
- FunctionImportElement.cs
- Visitor.cs
- ShellProvider.cs
- DataGridState.cs
- PEFileReader.cs
- MetadataArtifactLoaderComposite.cs
- DisposableCollectionWrapper.cs
- CustomTypeDescriptor.cs
- BufferedWebEventProvider.cs
- ImageFormatConverter.cs
- SetMemberBinder.cs
- DataServiceQuery.cs
- Win32.cs
- SystemColorTracker.cs
- ISO2022Encoding.cs
- TextEndOfSegment.cs
- TextViewSelectionProcessor.cs
- HtmlControl.cs
- SQLSingle.cs
- OleDbException.cs
- DesignSurfaceCollection.cs
- HtmlControl.cs
- CharAnimationUsingKeyFrames.cs
- Material.cs
- WebBrowserBase.cs
- CookielessHelper.cs
- Group.cs
- ProjectionPruner.cs
- ToolStripPanelSelectionBehavior.cs
- CompiledXpathExpr.cs
- XPathExpr.cs
- SqlWriter.cs
- WeakHashtable.cs
- CultureSpecificStringDictionary.cs
- SoapAttributeOverrides.cs
- _FixedSizeReader.cs
- TableLayoutCellPaintEventArgs.cs
- ScrollViewerAutomationPeer.cs
- OleDbFactory.cs
- CompensateDesigner.cs
- TileModeValidation.cs
- SafeHGlobalHandleCritical.cs
- SessionStateContainer.cs