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
- EllipseGeometry.cs
- FixedTextView.cs
- UrlPath.cs
- ListBoxDesigner.cs
- ItemCheckEvent.cs
- TypeBuilder.cs
- ResourcePermissionBase.cs
- Semaphore.cs
- NullRuntimeConfig.cs
- CompilerInfo.cs
- DataAccessor.cs
- UnsafeNativeMethods.cs
- WebFormsRootDesigner.cs
- RequiredFieldValidator.cs
- TextDecorationCollection.cs
- DeferredTextReference.cs
- BoundingRectTracker.cs
- Visual3DCollection.cs
- SerializationFieldInfo.cs
- ScrollChangedEventArgs.cs
- Exceptions.cs
- FormViewCommandEventArgs.cs
- EdmRelationshipRoleAttribute.cs
- CacheEntry.cs
- XPathNodeIterator.cs
- ExtendedProperty.cs
- SqlLiftIndependentRowExpressions.cs
- Pair.cs
- ListView.cs
- TreeBuilder.cs
- LowerCaseStringConverter.cs
- WebBrowserPermission.cs
- UnknownWrapper.cs
- FormsAuthenticationEventArgs.cs
- FixedFlowMap.cs
- Image.cs
- HtmlFormWrapper.cs
- Literal.cs
- ReadOnlyDictionary.cs
- SafeRightsManagementPubHandle.cs
- HistoryEventArgs.cs
- SocketException.cs
- ManagementScope.cs
- CheckBoxRenderer.cs
- MemberProjectedSlot.cs
- CqlParser.cs
- GeneralEndpointIdentity.cs
- MenuCommand.cs
- SafeArrayTypeMismatchException.cs
- iisPickupDirectory.cs
- NestPullup.cs
- XmlBinaryReaderSession.cs
- ThreadInterruptedException.cs
- HwndSource.cs
- ThreadPool.cs
- TextViewSelectionProcessor.cs
- EndpointDiscoveryBehavior.cs
- XmlAggregates.cs
- XmlSchema.cs
- XmlDocumentFragment.cs
- View.cs
- ReadingWritingEntityEventArgs.cs
- AmbientProperties.cs
- PackWebRequestFactory.cs
- WmlCalendarAdapter.cs
- EntityDataSourceChangingEventArgs.cs
- Column.cs
- XAMLParseException.cs
- CodeCommentStatement.cs
- MultilineStringConverter.cs
- SendSecurityHeaderElement.cs
- SoapClientProtocol.cs
- MexBindingElement.cs
- HealthMonitoringSectionHelper.cs
- CollectionChangeEventArgs.cs
- ReadonlyMessageFilter.cs
- StatusStrip.cs
- HyperLinkField.cs
- GridViewCommandEventArgs.cs
- HtmlPhoneCallAdapter.cs
- SimpleTypeResolver.cs
- DefaultMemberAttribute.cs
- SapiInterop.cs
- EventHandlerList.cs
- Stroke.cs
- ServiceOperationParameter.cs
- DelimitedListTraceListener.cs
- QilPatternFactory.cs
- BinaryMessageEncoder.cs
- base64Transforms.cs
- DesignerProperties.cs
- TextRunCache.cs
- CollectionView.cs
- DrawingContextDrawingContextWalker.cs
- MergablePropertyAttribute.cs
- GetFileNameResult.cs
- ScriptBehaviorDescriptor.cs
- FormatException.cs
- TcpTransportBindingElement.cs
- Environment.cs