Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // // ==--== /*============================================================ ** ** 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
- PeerPresenceInfo.cs
- RightsManagementPermission.cs
- FixedTextBuilder.cs
- DbConnectionHelper.cs
- ISAPIWorkerRequest.cs
- ReflectEventDescriptor.cs
- DataGridViewLayoutData.cs
- SmiContext.cs
- StructuredTypeEmitter.cs
- CommandLibraryHelper.cs
- ToolStripComboBox.cs
- DesignerActionHeaderItem.cs
- MaskInputRejectedEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- TreeViewHitTestInfo.cs
- TextRangeEdit.cs
- SocketElement.cs
- ContentType.cs
- SqlClientFactory.cs
- ZipIOExtraField.cs
- WebPartConnectionsCloseVerb.cs
- Comparer.cs
- SelectingProviderEventArgs.cs
- FormViewUpdatedEventArgs.cs
- BoundingRectTracker.cs
- JsonReader.cs
- StoragePropertyMapping.cs
- HostProtectionPermission.cs
- RoutedCommand.cs
- HttpBufferlessInputStream.cs
- ConditionalExpression.cs
- DataTransferEventArgs.cs
- XXXInfos.cs
- XmlAnyElementAttributes.cs
- Authorization.cs
- TypeConstant.cs
- Table.cs
- TextFormattingConverter.cs
- EllipticalNodeOperations.cs
- MenuBindingsEditorForm.cs
- ListViewDeleteEventArgs.cs
- MetaModel.cs
- ParentQuery.cs
- StyleTypedPropertyAttribute.cs
- NodeInfo.cs
- SymbolTable.cs
- MessageBuffer.cs
- ExpressionEditorAttribute.cs
- ThicknessAnimationUsingKeyFrames.cs
- MetafileHeaderWmf.cs
- SignedXml.cs
- XmlMtomReader.cs
- AutoScrollHelper.cs
- ChtmlLinkAdapter.cs
- UpdateCompiler.cs
- SudsParser.cs
- InfoCardRSACryptoProvider.cs
- XmlEncodedRawTextWriter.cs
- GCHandleCookieTable.cs
- MsdtcWrapper.cs
- DrawingAttributesDefaultValueFactory.cs
- GeneralTransform3D.cs
- Base64Stream.cs
- MdiWindowListStrip.cs
- PanelDesigner.cs
- WizardPanel.cs
- BitmapEffectGeneralTransform.cs
- CustomErrorCollection.cs
- _ScatterGatherBuffers.cs
- ModelTypeConverter.cs
- TextLineResult.cs
- BamlLocalizer.cs
- GridViewCancelEditEventArgs.cs
- LinearKeyFrames.cs
- MultiPropertyDescriptorGridEntry.cs
- ConstrainedDataObject.cs
- GacUtil.cs
- RegexWorker.cs
- ProxyAttribute.cs
- LockedBorderGlyph.cs
- Literal.cs
- BadImageFormatException.cs
- DBSchemaRow.cs
- SafeNativeMemoryHandle.cs
- CustomAttribute.cs
- ConfigurationProviderException.cs
- FileUpload.cs
- InteropAutomationProvider.cs
- WebUtil.cs
- Codec.cs
- EnumerableValidator.cs
- RijndaelManaged.cs
- DocumentViewer.cs
- XmlAnyAttributeAttribute.cs
- Semaphore.cs
- WebPartConnectionsDisconnectVerb.cs
- UrlMappingsSection.cs
- XmlCountingReader.cs
- ResourcePermissionBaseEntry.cs
- PluralizationServiceUtil.cs