Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProgressBar.cs
- CustomAttributeFormatException.cs
- LabelDesigner.cs
- SchemaNamespaceManager.cs
- Bezier.cs
- HtmlSelect.cs
- OdbcError.cs
- arc.cs
- UpdateCompiler.cs
- IncrementalCompileAnalyzer.cs
- TraceUtility.cs
- OleDbRowUpdatingEvent.cs
- ConsumerConnectionPointCollection.cs
- TextRangeProviderWrapper.cs
- XmlBaseReader.cs
- TextParagraphProperties.cs
- BevelBitmapEffect.cs
- TextBoxAutoCompleteSourceConverter.cs
- Perspective.cs
- CrossAppDomainChannel.cs
- FrameworkName.cs
- _LazyAsyncResult.cs
- DataGridViewRowHeaderCell.cs
- HuffModule.cs
- FileDialog.cs
- DbConnectionPoolCounters.cs
- Type.cs
- DetailsViewPagerRow.cs
- DirectoryRootQuery.cs
- MdImport.cs
- HotSpotCollection.cs
- MsmqDiagnostics.cs
- __Filters.cs
- LineInfo.cs
- CodeGroup.cs
- SqlMultiplexer.cs
- Label.cs
- StaticSiteMapProvider.cs
- Int32CollectionConverter.cs
- ToolStripOverflow.cs
- AutomationIdentifierGuids.cs
- EditorZone.cs
- TrackingStringDictionary.cs
- Vector3DValueSerializer.cs
- SvcMapFile.cs
- CodeDomDecompiler.cs
- RTLAwareMessageBox.cs
- BitmapEffectGroup.cs
- AdornerHitTestResult.cs
- MonthCalendarDesigner.cs
- ToolStripAdornerWindowService.cs
- ArrangedElementCollection.cs
- EntityContainerRelationshipSetEnd.cs
- DbFunctionCommandTree.cs
- AuthenticatingEventArgs.cs
- WindowsStatic.cs
- RuntimeEnvironment.cs
- XmlAutoDetectWriter.cs
- DataList.cs
- LZCodec.cs
- String.cs
- SystemIcmpV4Statistics.cs
- SelectionItemProviderWrapper.cs
- IRCollection.cs
- CodeStatement.cs
- WSSecurityTokenSerializer.cs
- BinaryConverter.cs
- RayMeshGeometry3DHitTestResult.cs
- Executor.cs
- ComponentChangingEvent.cs
- RectConverter.cs
- TextClipboardData.cs
- SqlRowUpdatingEvent.cs
- ObjectCacheHost.cs
- Transform3D.cs
- HttpApplicationStateBase.cs
- DefaultExpression.cs
- AssemblyUtil.cs
- MsmqMessageSerializationFormat.cs
- TextEditorSelection.cs
- DocumentViewerConstants.cs
- AuthenticationConfig.cs
- MatrixCamera.cs
- SoapSchemaExporter.cs
- SQLStringStorage.cs
- SecureStringHasher.cs
- WhitespaceRuleLookup.cs
- TypeSource.cs
- SqlTypesSchemaImporter.cs
- PassportAuthenticationEventArgs.cs
- InternalConfigHost.cs
- TimerElapsedEvenArgs.cs
- DetailsViewDeletedEventArgs.cs
- VarRemapper.cs
- LoadMessageLogger.cs
- DeferredElementTreeState.cs
- CollectionType.cs
- DateTimeStorage.cs
- OdbcErrorCollection.cs
- ContentType.cs