Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlLink.cs
- WorkflowInstanceAbortedRecord.cs
- ProfileService.cs
- TableItemStyle.cs
- SerializationInfo.cs
- sqlcontext.cs
- TreeNodeCollection.cs
- TdsParser.cs
- RelationshipConstraintValidator.cs
- XmlChildNodes.cs
- AccessKeyManager.cs
- XsltQilFactory.cs
- GPPOINTF.cs
- CorrelationActionMessageFilter.cs
- ProfileGroupSettingsCollection.cs
- DataSpaceManager.cs
- ToolStripOverflowButton.cs
- EntityProviderServices.cs
- AddressHeader.cs
- InvalidPrinterException.cs
- DefaultSerializationProviderAttribute.cs
- MobileUserControlDesigner.cs
- Single.cs
- DisplayMemberTemplateSelector.cs
- MSAAEventDispatcher.cs
- WindowExtensionMethods.cs
- SetStateDesigner.cs
- ClientEndpointLoader.cs
- ToolboxBitmapAttribute.cs
- RepeatInfo.cs
- DataGridViewSortCompareEventArgs.cs
- Wildcard.cs
- FormViewPageEventArgs.cs
- ExclusiveCanonicalizationTransform.cs
- PriorityBindingExpression.cs
- StatusBarItemAutomationPeer.cs
- Pointer.cs
- SqlProcedureAttribute.cs
- InvokeHandlers.cs
- DefinitionUpdate.cs
- InputLanguageManager.cs
- ServicePointManager.cs
- TextCompositionEventArgs.cs
- PropertyValueChangedEvent.cs
- Line.cs
- StringBuilder.cs
- ConnectionsZone.cs
- DynamicDataManager.cs
- QueueException.cs
- TogglePatternIdentifiers.cs
- _SslSessionsCache.cs
- Rectangle.cs
- Inflater.cs
- FormattedText.cs
- XmlSchemaSimpleContentRestriction.cs
- DocumentEventArgs.cs
- NullRuntimeConfig.cs
- _SslState.cs
- DataList.cs
- ListViewGroupConverter.cs
- GlyphRun.cs
- PingOptions.cs
- UnaryExpression.cs
- Bezier.cs
- DoubleAnimationClockResource.cs
- CheckBoxBaseAdapter.cs
- GraphicsPathIterator.cs
- MediaContextNotificationWindow.cs
- PageCatalogPart.cs
- FullTextState.cs
- DbConnectionFactory.cs
- BitmapVisualManager.cs
- GeneratedCodeAttribute.cs
- GroupBoxRenderer.cs
- ModuleElement.cs
- GridViewEditEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- AxHost.cs
- XmlNodeComparer.cs
- CustomValidator.cs
- TransformProviderWrapper.cs
- SelectionRangeConverter.cs
- ExceptionWrapper.cs
- UnsafeNativeMethods.cs
- ObjectItemCollection.cs
- ModelVisual3D.cs
- CommentEmitter.cs
- WebPartVerbCollection.cs
- FunctionGenerator.cs
- AnnotationDocumentPaginator.cs
- DeviceContext.cs
- IdentityModelDictionary.cs
- _SslSessionsCache.cs
- SendActivityEventArgs.cs
- ComponentResourceKeyConverter.cs
- GB18030Encoding.cs
- UnSafeCharBuffer.cs
- ParserContext.cs
- SettingsAttributes.cs
- ScriptingAuthenticationServiceSection.cs