Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerLabelAdapter.cs
- TrustLevel.cs
- Types.cs
- TextSearch.cs
- TypeConstant.cs
- StorageConditionPropertyMapping.cs
- CompilerResults.cs
- ColorAnimationUsingKeyFrames.cs
- IImplicitResourceProvider.cs
- RadioButtonList.cs
- BaseParaClient.cs
- NameSpaceEvent.cs
- PageHandlerFactory.cs
- XmlUtil.cs
- InputGestureCollection.cs
- AddInSegmentDirectoryNotFoundException.cs
- WorkflowInlining.cs
- BindingExpressionUncommonField.cs
- Point4DConverter.cs
- CurrentChangingEventArgs.cs
- QilInvokeLateBound.cs
- Journal.cs
- Model3D.cs
- SignedInfo.cs
- PolyBezierSegmentFigureLogic.cs
- DataGridCellsPresenter.cs
- MultiTrigger.cs
- LabelEditEvent.cs
- MatchNoneMessageFilter.cs
- EventLogEntry.cs
- XmlILCommand.cs
- TimerElapsedEvenArgs.cs
- KnownColorTable.cs
- ProcessHostFactoryHelper.cs
- ScriptControlDescriptor.cs
- DiscriminatorMap.cs
- UserUseLicenseDictionaryLoader.cs
- CompositeDataBoundControl.cs
- PathFigure.cs
- MobileControl.cs
- BaseTemplateParser.cs
- XmlAttributeAttribute.cs
- SourceFileBuildProvider.cs
- Point3DCollection.cs
- TimeSpanStorage.cs
- ColumnMapVisitor.cs
- BinaryQueryOperator.cs
- TemplateControlBuildProvider.cs
- UIElementPropertyUndoUnit.cs
- ConfigXmlSignificantWhitespace.cs
- SelectionEditingBehavior.cs
- XmlDataSourceNodeDescriptor.cs
- X509Certificate2.cs
- SqlUDTStorage.cs
- ListItemsCollectionEditor.cs
- RtfNavigator.cs
- NoResizeSelectionBorderGlyph.cs
- XmlAttributeOverrides.cs
- DataStorage.cs
- DataGridViewLinkCell.cs
- BuildProvider.cs
- LazyTextWriterCreator.cs
- StorageAssociationSetMapping.cs
- ColorAnimation.cs
- RadioButtonList.cs
- DataGridViewCellLinkedList.cs
- RenderingEventArgs.cs
- SamlSubjectStatement.cs
- SynchronousChannelMergeEnumerator.cs
- ExecutionEngineException.cs
- GeneralTransform.cs
- BindingCollection.cs
- XmlSchemaElement.cs
- ClientOptions.cs
- ConfigXmlComment.cs
- BridgeDataRecord.cs
- ToolBar.cs
- AspCompat.cs
- FixedTextSelectionProcessor.cs
- XmlSerializerOperationFormatter.cs
- Image.cs
- IBuiltInEvidence.cs
- NullReferenceException.cs
- COM2Properties.cs
- EntityTypeBase.cs
- StringFreezingAttribute.cs
- TextRange.cs
- InkCollectionBehavior.cs
- HttpInputStream.cs
- LookupNode.cs
- ConfigurationManagerInternalFactory.cs
- CheckBoxAutomationPeer.cs
- CustomCategoryAttribute.cs
- AuthorizationRuleCollection.cs
- _Win32.cs
- IdentityManager.cs
- TextDecoration.cs
- AccessControlList.cs
- PriorityRange.cs
- HealthMonitoringSectionHelper.cs