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
- Speller.cs
- UnsafeNativeMethods.cs
- XPathAxisIterator.cs
- SpellCheck.cs
- ResourceProviderFactory.cs
- MemberRelationshipService.cs
- ShaderRenderModeValidation.cs
- SerializerWriterEventHandlers.cs
- ImageSource.cs
- SrgsElement.cs
- NeutralResourcesLanguageAttribute.cs
- SemaphoreSlim.cs
- XmlElementCollection.cs
- ManagementClass.cs
- RsaSecurityKey.cs
- LicenseContext.cs
- DataSourceXmlAttributeAttribute.cs
- XmlSchemaSimpleTypeRestriction.cs
- RegexCharClass.cs
- DataObjectAttribute.cs
- _BaseOverlappedAsyncResult.cs
- RepeaterItem.cs
- ValidationRuleCollection.cs
- ItemsPresenter.cs
- IndentedWriter.cs
- rsa.cs
- MappedMetaModel.cs
- CollectionBuilder.cs
- StaticSiteMapProvider.cs
- OleDbStruct.cs
- Transactions.cs
- AdRotator.cs
- OleDbWrapper.cs
- WebPartTransformerAttribute.cs
- IFlowDocumentViewer.cs
- AutomationElementCollection.cs
- TextContainerChangeEventArgs.cs
- SecurityContext.cs
- ApplicationActivator.cs
- BindingBase.cs
- SiteMapPathDesigner.cs
- Roles.cs
- ThreadExceptionEvent.cs
- CodeTypeDeclaration.cs
- DtdParser.cs
- DbSourceCommand.cs
- DataSourceXmlElementAttribute.cs
- CompoundFileStorageReference.cs
- ExpressionBuilderContext.cs
- SystemParameters.cs
- FileBasedResourceGroveler.cs
- SolidColorBrush.cs
- PenThreadPool.cs
- SID.cs
- LinkConverter.cs
- TrackPointCollection.cs
- DesignerAdapterAttribute.cs
- ButtonBase.cs
- Int16.cs
- PocoEntityKeyStrategy.cs
- LocatorPartList.cs
- ArrayWithOffset.cs
- TaskDesigner.cs
- AssemblyCache.cs
- RecognitionEventArgs.cs
- SupportsEventValidationAttribute.cs
- Command.cs
- ValueTable.cs
- FlowSwitchLink.cs
- ProjectionCamera.cs
- Monitor.cs
- AsyncPostBackErrorEventArgs.cs
- TemplateKey.cs
- HitTestWithPointDrawingContextWalker.cs
- ImageButton.cs
- DataGridRelationshipRow.cs
- HttpListenerException.cs
- MediaTimeline.cs
- Validator.cs
- XPathParser.cs
- QilNode.cs
- GridViewCommandEventArgs.cs
- XmlChildEnumerator.cs
- ZipIOExtraFieldElement.cs
- GeneralTransform3DTo2DTo3D.cs
- loginstatus.cs
- UncommonField.cs
- CancellableEnumerable.cs
- CellQuery.cs
- SystemWebSectionGroup.cs
- CodeBlockBuilder.cs
- DomainUpDown.cs
- StructuredTypeEmitter.cs
- DesignerDeviceConfig.cs
- ComboBoxRenderer.cs
- DecoderExceptionFallback.cs
- Attributes.cs
- UInt32Converter.cs
- ProcessHost.cs
- AuthenticationModuleElement.cs