Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / TypeToken.cs / 1305376 / 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. // // ==--== /*============================================================ ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropShadowEffect.cs
- DataBinding.cs
- GcSettings.cs
- validation.cs
- SignatureTargetIdManager.cs
- CharKeyFrameCollection.cs
- AttachmentCollection.cs
- PolicyChain.cs
- DataFormats.cs
- MemoryMappedFile.cs
- Volatile.cs
- ValueChangedEventManager.cs
- RootBuilder.cs
- Identity.cs
- SiteMapNodeItem.cs
- MessageBox.cs
- RotateTransform.cs
- COM2ExtendedBrowsingHandler.cs
- StaticSiteMapProvider.cs
- RoleManagerSection.cs
- KerberosReceiverSecurityToken.cs
- storepermission.cs
- NotImplementedException.cs
- VScrollBar.cs
- Triplet.cs
- messageonlyhwndwrapper.cs
- ConnectivityStatus.cs
- ObjectConverter.cs
- WinInet.cs
- SqlDataSourceQueryConverter.cs
- StringToken.cs
- SelectorAutomationPeer.cs
- TcpProcessProtocolHandler.cs
- webeventbuffer.cs
- MatrixAnimationBase.cs
- TransformerTypeCollection.cs
- InkCanvasSelection.cs
- DesigntimeLicenseContext.cs
- SecurityHeader.cs
- SystemIcons.cs
- SystemEvents.cs
- TCPClient.cs
- ReplacementText.cs
- WorkflowRuntimeService.cs
- PeerCredentialElement.cs
- DbParameterHelper.cs
- LogEntryUtils.cs
- TemplateParser.cs
- Baml2006ReaderSettings.cs
- DmlSqlGenerator.cs
- ISFTagAndGuidCache.cs
- filewebrequest.cs
- TakeOrSkipWhileQueryOperator.cs
- CurrentChangedEventManager.cs
- ToolStripSettings.cs
- PerformanceCountersElement.cs
- WebServiceEnumData.cs
- ExpressionBindings.cs
- TextDpi.cs
- InputProviderSite.cs
- SqlDependencyUtils.cs
- CodeDelegateInvokeExpression.cs
- FlowDocumentPaginator.cs
- EditBehavior.cs
- SqlProvider.cs
- AppModelKnownContentFactory.cs
- Menu.cs
- DataSvcMapFile.cs
- AssemblyHelper.cs
- WebPartCloseVerb.cs
- XamlPointCollectionSerializer.cs
- ArithmeticLiteral.cs
- FilteredReadOnlyMetadataCollection.cs
- RoutedPropertyChangedEventArgs.cs
- UDPClient.cs
- ResXFileRef.cs
- Geometry3D.cs
- EditorPartChrome.cs
- DataTableClearEvent.cs
- ExtensionQuery.cs
- SelectionItemProviderWrapper.cs
- DocumentSequenceHighlightLayer.cs
- TokenBasedSetEnumerator.cs
- ISAPIApplicationHost.cs
- CheckBoxField.cs
- ToolStripRenderEventArgs.cs
- OleDbRowUpdatingEvent.cs
- BufferedGraphicsManager.cs
- PublisherIdentityPermission.cs
- WebPartsSection.cs
- SlipBehavior.cs
- RandomNumberGenerator.cs
- PropertyRef.cs
- PartialList.cs
- DecimalFormatter.cs
- ValueUnavailableException.cs
- Size.cs
- Version.cs
- _ListenerResponseStream.cs
- Clock.cs