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
- securitycriticaldataClass.cs
- TrackingCondition.cs
- Tuple.cs
- ContextMenu.cs
- JsonXmlDataContract.cs
- NamespaceExpr.cs
- VBCodeProvider.cs
- TypeExtension.cs
- ApplicationException.cs
- FlowSwitchLink.cs
- TdsParameterSetter.cs
- StringValueSerializer.cs
- JpegBitmapEncoder.cs
- XamlClipboardData.cs
- LowerCaseStringConverter.cs
- LinqDataSourceValidationException.cs
- TCEAdapterGenerator.cs
- CustomAttributeFormatException.cs
- TabletCollection.cs
- MonthCalendar.cs
- FormViewModeEventArgs.cs
- WsatTransactionFormatter.cs
- DataRowCollection.cs
- Int32RectConverter.cs
- ExtendedProperty.cs
- PrintEvent.cs
- CodeSubDirectory.cs
- ApplicationInfo.cs
- RegexMatch.cs
- Geometry3D.cs
- DataObjectAttribute.cs
- _Events.cs
- InternalTypeHelper.cs
- Region.cs
- MobileControlsSectionHandler.cs
- SplitterEvent.cs
- WinFormsSpinner.cs
- NativeMethods.cs
- Byte.cs
- MarginCollapsingState.cs
- KeyValueInternalCollection.cs
- CustomTokenProvider.cs
- XmlSubtreeReader.cs
- Int16Converter.cs
- DataServiceProviderWrapper.cs
- SynchronizedDispatch.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CreateInstanceBinder.cs
- Pen.cs
- PathFigureCollectionConverter.cs
- BitmapPalettes.cs
- ProxyWebPartManager.cs
- SessionStateContainer.cs
- ServiceHostingEnvironmentSection.cs
- AmbientProperties.cs
- InputLanguageManager.cs
- NullEntityWrapper.cs
- TabletDeviceInfo.cs
- GroupBoxRenderer.cs
- ProcessManager.cs
- ClientSponsor.cs
- EtwTrace.cs
- DeviceContexts.cs
- KeyNotFoundException.cs
- NamespaceInfo.cs
- AdapterDictionary.cs
- DataStreams.cs
- SchemaNotation.cs
- XmlProcessingInstruction.cs
- DataGridViewAdvancedBorderStyle.cs
- PolygonHotSpot.cs
- StrongNameIdentityPermission.cs
- FieldDescriptor.cs
- InvalidWMPVersionException.cs
- Bits.cs
- UrlRoutingModule.cs
- JsonXmlDataContract.cs
- BamlRecordWriter.cs
- ObjectSecurityT.cs
- SQLChars.cs
- WindowsFont.cs
- PtsHelper.cs
- CounterCreationData.cs
- FixedDSBuilder.cs
- TypeLoadException.cs
- SafeEventHandle.cs
- PointF.cs
- HostingPreferredMapPath.cs
- WaitHandle.cs
- MethodBuilderInstantiation.cs
- SiteMapDataSource.cs
- OletxTransactionFormatter.cs
- QuadTree.cs
- RedBlackList.cs
- XamlFilter.cs
- RegexMatchCollection.cs
- PiiTraceSource.cs
- IdentifierCreationService.cs
- _SslStream.cs
- OleDbMetaDataFactory.cs