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
- SendingRequestEventArgs.cs
- UdpChannelListener.cs
- CodeTypeParameter.cs
- WindowsSlider.cs
- TextRange.cs
- NullRuntimeConfig.cs
- FilteredXmlReader.cs
- LogicalExpr.cs
- WmlTextViewAdapter.cs
- MarginsConverter.cs
- SynchronizedInputPattern.cs
- VisualBasicImportReference.cs
- QuaternionValueSerializer.cs
- TableLayoutStyleCollection.cs
- EdgeModeValidation.cs
- GeneralTransform2DTo3D.cs
- SchemaTypeEmitter.cs
- HttpRequestMessageProperty.cs
- WhiteSpaceTrimStringConverter.cs
- TextEndOfParagraph.cs
- SegmentInfo.cs
- SafeReadContext.cs
- MsmqAppDomainProtocolHandler.cs
- TemplateBamlTreeBuilder.cs
- ISAPIWorkerRequest.cs
- AssociationTypeEmitter.cs
- StickyNoteContentControl.cs
- DataSourceXmlSerializer.cs
- TextServicesDisplayAttributePropertyRanges.cs
- PerfService.cs
- ValueOfAction.cs
- MsmqBindingMonitor.cs
- Journaling.cs
- RequestResizeEvent.cs
- ToolStripItem.cs
- SymLanguageType.cs
- DataGridViewCellFormattingEventArgs.cs
- ListViewGroup.cs
- CompilerParameters.cs
- ConfigXmlAttribute.cs
- DateRangeEvent.cs
- XPathEmptyIterator.cs
- CaseStatement.cs
- TableLayoutSettings.cs
- ButtonFlatAdapter.cs
- CollectionBuilder.cs
- TransformCollection.cs
- EventManager.cs
- BitmapEffect.cs
- ComponentRenameEvent.cs
- FlowDocument.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- StateItem.cs
- Helper.cs
- HTMLTextWriter.cs
- Set.cs
- StreamGeometry.cs
- ModelFactory.cs
- ProviderConnectionPointCollection.cs
- SpecialFolderEnumConverter.cs
- Vertex.cs
- TemplateFactory.cs
- DesignerVerb.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- TreeNodeStyle.cs
- Border.cs
- ArraySegment.cs
- PasswordRecovery.cs
- BlockCollection.cs
- DataGridItemCollection.cs
- ManifestResourceInfo.cs
- DataPagerFieldCommandEventArgs.cs
- IDispatchConstantAttribute.cs
- Visitors.cs
- ProfileBuildProvider.cs
- TextPointerBase.cs
- Baml6ConstructorInfo.cs
- HotCommands.cs
- SqlClientMetaDataCollectionNames.cs
- PrtTicket_Editor.cs
- JsonDataContract.cs
- SqlCaseSimplifier.cs
- RemotingSurrogateSelector.cs
- TextWriter.cs
- ResolvePPIDRequest.cs
- ExtensibleClassFactory.cs
- Point4DValueSerializer.cs
- RowBinding.cs
- BrowserCapabilitiesCompiler.cs
- CodeRemoveEventStatement.cs
- MetadataArtifactLoaderResource.cs
- CfgSemanticTag.cs
- Container.cs
- EnvelopedPkcs7.cs
- ListItemCollection.cs
- GuidelineSet.cs
- SlipBehavior.cs
- MDIWindowDialog.cs
- PageThemeBuildProvider.cs
- ExceptionCollection.cs