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
- OuterProxyWrapper.cs
- activationcontext.cs
- StrokeNodeOperations2.cs
- Semaphore.cs
- COAUTHIDENTITY.cs
- TreeNodeBinding.cs
- ContainerUIElement3D.cs
- CompositeDispatchFormatter.cs
- ApplicationException.cs
- ISAPIRuntime.cs
- SqlClientMetaDataCollectionNames.cs
- TemplateGroupCollection.cs
- MatrixTransform.cs
- StandardMenuStripVerb.cs
- TextServicesContext.cs
- HostingEnvironmentException.cs
- FormViewCommandEventArgs.cs
- ConstrainedDataObject.cs
- StrokeNodeOperations2.cs
- CellTreeNode.cs
- AnonymousIdentificationModule.cs
- odbcmetadatafactory.cs
- RankException.cs
- DPAPIProtectedConfigurationProvider.cs
- Emitter.cs
- CodeNamespaceImport.cs
- WebPartZone.cs
- VisualState.cs
- DiscoveryDocumentReference.cs
- EndOfStreamException.cs
- CompositeKey.cs
- NextPreviousPagerField.cs
- ImportStoreException.cs
- Int16Converter.cs
- SafeNativeMethods.cs
- DeferredTextReference.cs
- ResXBuildProvider.cs
- SettingsProperty.cs
- Vector.cs
- NavigationPropertyEmitter.cs
- SiteMapNodeItem.cs
- Message.cs
- GradientStop.cs
- InputReferenceExpression.cs
- GcHandle.cs
- SizeAnimationClockResource.cs
- SqlGenericUtil.cs
- OutKeywords.cs
- WorkflowDesignerMessageFilter.cs
- SoapMessage.cs
- Root.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ConnectionPoolManager.cs
- ExceptionUtil.cs
- LogicalTreeHelper.cs
- ClickablePoint.cs
- DataGridComboBoxColumn.cs
- PeerNameRecord.cs
- Model3D.cs
- JsonEncodingStreamWrapper.cs
- PageBreakRecord.cs
- XmlKeywords.cs
- RectIndependentAnimationStorage.cs
- CookieParameter.cs
- LocalizationParserHooks.cs
- listitem.cs
- DbMetaDataColumnNames.cs
- WorkflowInstanceContextProvider.cs
- InsufficientMemoryException.cs
- DateTimeOffsetAdapter.cs
- EntityKeyElement.cs
- InProcStateClientManager.cs
- WebScriptClientGenerator.cs
- DataTableNewRowEvent.cs
- TextInfo.cs
- StructuredType.cs
- XmlAttributeCollection.cs
- BamlLocalizabilityResolver.cs
- VersionedStream.cs
- XmlConvert.cs
- XdrBuilder.cs
- XmlQueryTypeFactory.cs
- ConfigXmlText.cs
- NotFiniteNumberException.cs
- TemplatePropertyEntry.cs
- regiisutil.cs
- PixelShader.cs
- RegularExpressionValidator.cs
- AssociationType.cs
- CanExecuteRoutedEventArgs.cs
- DiscoveryDocumentSearchPattern.cs
- MetadataArtifactLoaderResource.cs
- SystemDropShadowChrome.cs
- TextDecoration.cs
- EntityContainerEntitySetDefiningQuery.cs
- IriParsingElement.cs
- ModelItemCollection.cs
- CombinedGeometry.cs
- regiisutil.cs
- XmlSecureResolver.cs