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
- FtpRequestCacheValidator.cs
- ImageKeyConverter.cs
- XPathCompileException.cs
- XPathSelfQuery.cs
- StateValidator.cs
- WebPartHeaderCloseVerb.cs
- SystemNetworkInterface.cs
- CriticalFinalizerObject.cs
- ProfilePropertySettings.cs
- DiagnosticTrace.cs
- Events.cs
- DatatypeImplementation.cs
- CacheModeConverter.cs
- AutomationElementCollection.cs
- ClientBuildManagerCallback.cs
- AssemblyResourceLoader.cs
- documentsequencetextcontainer.cs
- XmlStreamStore.cs
- ResponseStream.cs
- CodeActivityContext.cs
- RectAnimationBase.cs
- StringDictionaryCodeDomSerializer.cs
- SafeRightsManagementPubHandle.cs
- XmlDataCollection.cs
- SqlNotificationEventArgs.cs
- AudioException.cs
- Pen.cs
- MouseGestureConverter.cs
- WindowsAltTab.cs
- DbParameterCollectionHelper.cs
- XmlReaderSettings.cs
- BasicExpandProvider.cs
- GridViewUpdatedEventArgs.cs
- MergeExecutor.cs
- BoundsDrawingContextWalker.cs
- LockedHandleGlyph.cs
- IncrementalReadDecoders.cs
- FieldDescriptor.cs
- Message.cs
- PropertyGridView.cs
- ServiceErrorHandler.cs
- TypeContext.cs
- FunctionDetailsReader.cs
- XmlBinaryReader.cs
- SHA256.cs
- XomlDesignerLoader.cs
- NumberFunctions.cs
- TextTrailingWordEllipsis.cs
- TemplateBindingExtensionConverter.cs
- UIElementHelper.cs
- Point3D.cs
- NegatedCellConstant.cs
- AnnotationElement.cs
- WinFormsUtils.cs
- ObjectViewEntityCollectionData.cs
- NativeMethods.cs
- SpecularMaterial.cs
- XPathNavigator.cs
- SQLGuid.cs
- ToolStripItemGlyph.cs
- shaperfactory.cs
- StringConverter.cs
- MemberNameValidator.cs
- TemplateControlBuildProvider.cs
- ResourcePart.cs
- PeerHelpers.cs
- TrackingProfileSerializer.cs
- EdmProperty.cs
- TextMarkerSource.cs
- Vector3DCollection.cs
- DirectoryInfo.cs
- Debug.cs
- ListBindingConverter.cs
- ForwardPositionQuery.cs
- WebHttpSecurity.cs
- ConfigXmlDocument.cs
- ResourceAssociationType.cs
- SQlBooleanStorage.cs
- FilterableAttribute.cs
- BitmapFrameDecode.cs
- DataSourceView.cs
- TableRowCollection.cs
- ListMarkerSourceInfo.cs
- ClosableStream.cs
- RestHandlerFactory.cs
- NavigatingCancelEventArgs.cs
- DictionarySectionHandler.cs
- ListViewDeletedEventArgs.cs
- GrammarBuilderPhrase.cs
- Range.cs
- BigInt.cs
- PtsPage.cs
- PageBuildProvider.cs
- UserPersonalizationStateInfo.cs
- VBIdentifierNameEditor.cs
- WebBrowserUriTypeConverter.cs
- MasterPageBuildProvider.cs
- UIElementParagraph.cs
- HatchBrush.cs
- DataKey.cs