Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- LinqDataSourceContextEventArgs.cs
- AuthenticatedStream.cs
- DbgCompiler.cs
- Serializer.cs
- TimerElapsedEvenArgs.cs
- FlowchartDesigner.Helpers.cs
- ComponentResourceKeyConverter.cs
- versioninfo.cs
- NameTable.cs
- GZipObjectSerializer.cs
- DataListItemEventArgs.cs
- UIPermission.cs
- DataTemplateSelector.cs
- OleDbErrorCollection.cs
- DataServiceQueryOfT.cs
- XmlSchemaAnyAttribute.cs
- FileDialog_Vista_Interop.cs
- Visual3D.cs
- TakeQueryOptionExpression.cs
- MulticastDelegate.cs
- MaskedTextBoxTextEditorDropDown.cs
- AnnotationAdorner.cs
- GridErrorDlg.cs
- HeaderedContentControl.cs
- CompositeDesignerAccessibleObject.cs
- PathStreamGeometryContext.cs
- TemplateAction.cs
- DependentTransaction.cs
- DoubleAnimation.cs
- EntityTypeBase.cs
- Clock.cs
- OpCodes.cs
- NamespaceCollection.cs
- _LocalDataStoreMgr.cs
- TextWriterTraceListener.cs
- AppSecurityManager.cs
- XmlObjectSerializerContext.cs
- log.cs
- CacheEntry.cs
- Point3DValueSerializer.cs
- IdentityHolder.cs
- ErrorStyle.cs
- ClassData.cs
- XpsFont.cs
- CallbackHandler.cs
- CatalogZoneBase.cs
- TabItem.cs
- FillRuleValidation.cs
- ProfilePropertySettings.cs
- CmsInterop.cs
- PerfCounterSection.cs
- ApplicationManager.cs
- DocumentApplicationJournalEntry.cs
- TraceSource.cs
- CallId.cs
- RadioButton.cs
- TextContainerChangeEventArgs.cs
- SourceFilter.cs
- ToolboxItemFilterAttribute.cs
- NativeCompoundFileAPIs.cs
- ExtenderHelpers.cs
- ParagraphVisual.cs
- DataTableExtensions.cs
- WindowsNonControl.cs
- MergeFilterQuery.cs
- AutomationIdentifierGuids.cs
- DataSourceCacheDurationConverter.cs
- AsymmetricCryptoHandle.cs
- InternalCache.cs
- ProfileManager.cs
- DbExpressionVisitor_TResultType.cs
- Point3DCollectionConverter.cs
- BitSet.cs
- Int32.cs
- SqlPersonalizationProvider.cs
- FontUnitConverter.cs
- BaseCodeDomTreeGenerator.cs
- ToolStripDesignerAvailabilityAttribute.cs
- OutgoingWebResponseContext.cs
- MethodImplAttribute.cs
- TextRunTypographyProperties.cs
- BindingContext.cs
- Stack.cs
- WinFormsUtils.cs
- CodeLinePragma.cs
- QueueNameHelper.cs
- BaseResourcesBuildProvider.cs
- TempFiles.cs
- TypedReference.cs
- TextBlock.cs
- NeutralResourcesLanguageAttribute.cs
- CreateRefExpr.cs
- SqlNode.cs
- GraphicsPath.cs
- InputLangChangeRequestEvent.cs
- TraceProvider.cs
- CultureData.cs
- MobileCapabilities.cs
- UniqueIdentifierService.cs
- DbSourceCommand.cs