Code:
/ FX-1434 / FX-1434 / 1.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
- PanelStyle.cs
- CompoundFileIOPermission.cs
- TextServicesLoader.cs
- VisualCollection.cs
- SiteMapNode.cs
- TextSelectionProcessor.cs
- ChtmlPhoneCallAdapter.cs
- DTCTransactionManager.cs
- ExitEventArgs.cs
- XmlException.cs
- CustomErrorsSection.cs
- ReflectionUtil.cs
- DbQueryCommandTree.cs
- AutomationAttributeInfo.cs
- ComponentChangingEvent.cs
- Delegate.cs
- MultipleViewPatternIdentifiers.cs
- FormClosingEvent.cs
- Array.cs
- LongTypeConverter.cs
- SrgsSubset.cs
- InvokeWebService.cs
- SHA256.cs
- NativeMethodsOther.cs
- Facet.cs
- SslSecurityTokenParameters.cs
- DataBinder.cs
- ConfigXmlComment.cs
- ListViewInsertedEventArgs.cs
- FilteredAttributeCollection.cs
- TreeView.cs
- PrintDialogException.cs
- SoapIgnoreAttribute.cs
- FreezableCollection.cs
- RangeValidator.cs
- DocComment.cs
- ProgressBarRenderer.cs
- ServiceBehaviorElementCollection.cs
- SchemaMapping.cs
- DesignerOptionService.cs
- SecurityTokenException.cs
- ADConnectionHelper.cs
- ToolStripHighContrastRenderer.cs
- VectorValueSerializer.cs
- CheckBoxAutomationPeer.cs
- BrushMappingModeValidation.cs
- PropertyItem.cs
- ConnectionConsumerAttribute.cs
- RC2CryptoServiceProvider.cs
- AsymmetricAlgorithm.cs
- BaseCodePageEncoding.cs
- RenamedEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- BuildManagerHost.cs
- Tokenizer.cs
- DecoderFallbackWithFailureFlag.cs
- DbMetaDataFactory.cs
- tooltip.cs
- MappingMetadataHelper.cs
- ButtonStandardAdapter.cs
- CacheAxisQuery.cs
- Descriptor.cs
- GeometryGroup.cs
- WindowsAltTab.cs
- COSERVERINFO.cs
- BindingExpression.cs
- TemplateContentLoader.cs
- NativeMethods.cs
- BinaryUtilClasses.cs
- RawTextInputReport.cs
- PassportPrincipal.cs
- SpotLight.cs
- FileLoadException.cs
- BamlTreeMap.cs
- EnumerableRowCollection.cs
- MetaModel.cs
- SrgsElement.cs
- URIFormatException.cs
- Point.cs
- MarkupCompilePass2.cs
- DBDataPermission.cs
- HttpRequestCacheValidator.cs
- Cursors.cs
- Sql8ExpressionRewriter.cs
- ColumnClickEvent.cs
- SynchronizationLockException.cs
- WebPageTraceListener.cs
- SystemWebSectionGroup.cs
- LicenseManager.cs
- GACIdentityPermission.cs
- ReliableSessionBindingElement.cs
- GcHandle.cs
- HttpBrowserCapabilitiesWrapper.cs
- ChtmlLinkAdapter.cs
- InstanceKey.cs
- RtfFormatStack.cs
- NameSpaceEvent.cs
- MouseBinding.cs
- BackgroundFormatInfo.cs
- ContentPresenter.cs