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
- RTLAwareMessageBox.cs
- AVElementHelper.cs
- EncryptedPackage.cs
- XslCompiledTransform.cs
- TextAdaptor.cs
- DataKeyArray.cs
- ListView.cs
- XmlAttributeCollection.cs
- ApplicationBuildProvider.cs
- ConfigXmlWhitespace.cs
- Aggregates.cs
- BufferedGraphics.cs
- TextEditor.cs
- UnhandledExceptionEventArgs.cs
- ManagedWndProcTracker.cs
- SafeCryptoHandles.cs
- DataRelationCollection.cs
- D3DImage.cs
- SystemEvents.cs
- TextElementEnumerator.cs
- __Filters.cs
- SoapBinding.cs
- AutoResetEvent.cs
- BinaryNode.cs
- EntityCommandCompilationException.cs
- ChannelServices.cs
- RayMeshGeometry3DHitTestResult.cs
- FormClosingEvent.cs
- ServiceManager.cs
- XmlIlGenerator.cs
- DataGridTextBoxColumn.cs
- XmlDocument.cs
- EntityParameter.cs
- ScriptBehaviorDescriptor.cs
- CodeValidator.cs
- FormViewModeEventArgs.cs
- UpdatePanelTriggerCollection.cs
- ProxyWebPart.cs
- ColorAnimationUsingKeyFrames.cs
- CalendarItem.cs
- Preprocessor.cs
- PositiveTimeSpanValidator.cs
- PerformanceCounterManager.cs
- HashMembershipCondition.cs
- IPPacketInformation.cs
- HtmlInputFile.cs
- returneventsaver.cs
- DefaultProxySection.cs
- PageParserFilter.cs
- SoapAttributes.cs
- DynamicMethod.cs
- EmptyStringExpandableObjectConverter.cs
- NamespaceList.cs
- ExecutionEngineException.cs
- SqlNode.cs
- precedingquery.cs
- CqlParser.cs
- DataGridSortCommandEventArgs.cs
- InvocationExpression.cs
- Schedule.cs
- RuntimeConfigurationRecord.cs
- CursorConverter.cs
- ServiceObjectContainer.cs
- AssociationSet.cs
- PropertyDescriptorCollection.cs
- returneventsaver.cs
- FrameworkRichTextComposition.cs
- AuthenticationModulesSection.cs
- DynamicMethod.cs
- HTTPNotFoundHandler.cs
- PersonalizationAdministration.cs
- DesignerForm.cs
- FixedSOMPage.cs
- JavascriptCallbackMessageInspector.cs
- AttributeTable.cs
- HeaderedContentControl.cs
- ParserOptions.cs
- DesignerAttribute.cs
- XmlElementCollection.cs
- FloaterBaseParagraph.cs
- ValidationResults.cs
- CodeAttributeDeclarationCollection.cs
- PerformanceCounterPermissionEntry.cs
- HebrewNumber.cs
- EventProperty.cs
- ExpandedWrapper.cs
- TextBox.cs
- IItemContainerGenerator.cs
- MonthChangedEventArgs.cs
- DataRelationCollection.cs
- ParallelRangeManager.cs
- GeneralTransform2DTo3DTo2D.cs
- FullTextLine.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SystemTcpStatistics.cs
- Point3D.cs
- DataGridViewRowsRemovedEventArgs.cs
- WmlImageAdapter.cs
- ErrorTableItemStyle.cs
- SrgsElementFactoryCompiler.cs