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
- CountAggregationOperator.cs
- ParameterModifier.cs
- DataControlLinkButton.cs
- DesignerVerbCollection.cs
- cookieexception.cs
- RecognitionResult.cs
- Transform.cs
- PropertyConverter.cs
- CultureInfo.cs
- HttpTransportManager.cs
- CoordinationService.cs
- AttributeSetAction.cs
- GridViewSortEventArgs.cs
- XsdBuildProvider.cs
- DBSchemaTable.cs
- COM2PropertyPageUITypeConverter.cs
- Camera.cs
- ToolstripProfessionalRenderer.cs
- PersonalizationProvider.cs
- HttpInputStream.cs
- DataGridViewImageCell.cs
- SerialErrors.cs
- IOThreadTimer.cs
- Page.cs
- Graphics.cs
- AndAlso.cs
- TimeSpanConverter.cs
- MediaElement.cs
- SamlConstants.cs
- StartUpEventArgs.cs
- ConnectionPointCookie.cs
- HttpClientCertificate.cs
- DragEventArgs.cs
- pingexception.cs
- XamlDesignerSerializationManager.cs
- NCryptSafeHandles.cs
- EncryptedXml.cs
- ScrollChangedEventArgs.cs
- SqlFacetAttribute.cs
- ParameterCollection.cs
- SessionEndingEventArgs.cs
- DesignerActionHeaderItem.cs
- ScriptingSectionGroup.cs
- Identity.cs
- InvalidWMPVersionException.cs
- ListBoxAutomationPeer.cs
- __Filters.cs
- IOThreadTimer.cs
- ScriptControl.cs
- OutputCacheSettingsSection.cs
- XmlSchemaInfo.cs
- DbProviderFactoriesConfigurationHandler.cs
- DSGeneratorProblem.cs
- BufferBuilder.cs
- HttpResponse.cs
- JsonDeserializer.cs
- PackagePartCollection.cs
- ExpandSegmentCollection.cs
- StorageEntitySetMapping.cs
- OdbcConnectionStringbuilder.cs
- QilUnary.cs
- WorkflowInstanceRecord.cs
- pingexception.cs
- GenericEnumerator.cs
- Int64KeyFrameCollection.cs
- NullableConverter.cs
- PartitionResolver.cs
- BuildDependencySet.cs
- ExpandedWrapper.cs
- CapabilitiesSection.cs
- Transactions.cs
- XPathDocumentIterator.cs
- CustomWebEventKey.cs
- EntityUtil.cs
- WebPartEditVerb.cs
- WindowsSysHeader.cs
- CombinedGeometry.cs
- MultipleViewPatternIdentifiers.cs
- AccessorTable.cs
- GPPOINT.cs
- TextTabProperties.cs
- BamlBinaryReader.cs
- Double.cs
- CompModHelpers.cs
- DependencyPropertyValueSerializer.cs
- EditingScopeUndoUnit.cs
- ValueConversionAttribute.cs
- NamespaceExpr.cs
- FixUp.cs
- MyContact.cs
- PtsCache.cs
- MarkedHighlightComponent.cs
- SamlAttributeStatement.cs
- XDeferredAxisSource.cs
- EncoderParameter.cs
- XmlNodeComparer.cs
- ContractReference.cs
- GraphicsPathIterator.cs
- ExceptionHandler.cs
- ActivityDefaults.cs