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
- ConfigurationManagerInternalFactory.cs
- RepeaterItem.cs
- ColorAnimationBase.cs
- SignatureHelper.cs
- InheritanceAttribute.cs
- TextDecoration.cs
- VoiceSynthesis.cs
- Transform3D.cs
- TypeConverter.cs
- HtmlHistory.cs
- SqlCacheDependencyDatabase.cs
- ControlIdConverter.cs
- RuntimeCompatibilityAttribute.cs
- SoapWriter.cs
- MimePart.cs
- AuthenticationConfig.cs
- DeadLetterQueue.cs
- IImplicitResourceProvider.cs
- UrlMapping.cs
- TextRenderer.cs
- MultiPageTextView.cs
- UTF32Encoding.cs
- TextEditorDragDrop.cs
- ResXDataNode.cs
- LinkLabel.cs
- NodeLabelEditEvent.cs
- DropSourceBehavior.cs
- NativeMethods.cs
- SafeFileMappingHandle.cs
- ExtentCqlBlock.cs
- contentDescriptor.cs
- ServicesSection.cs
- ScriptReferenceBase.cs
- PrivacyNoticeBindingElement.cs
- SmiConnection.cs
- CacheDependency.cs
- XmlSchemaComplexContentRestriction.cs
- PagerStyle.cs
- FloaterBaseParaClient.cs
- QilXmlWriter.cs
- SHA512.cs
- ViewLoader.cs
- SimpleRecyclingCache.cs
- CodeLabeledStatement.cs
- UserNamePasswordValidator.cs
- DisposableCollectionWrapper.cs
- OutputBuffer.cs
- MembershipValidatePasswordEventArgs.cs
- PlainXmlDeserializer.cs
- DrawingDrawingContext.cs
- SourceElementsCollection.cs
- SymLanguageVendor.cs
- FieldMetadata.cs
- EdmMember.cs
- ResourceContainer.cs
- DataGridViewCellCollection.cs
- NameSpaceEvent.cs
- AmbiguousMatchException.cs
- MsmqHostedTransportConfiguration.cs
- DataServiceQuery.cs
- HttpInputStream.cs
- OperatorExpressions.cs
- ScrollEventArgs.cs
- DataTableTypeConverter.cs
- DtdParser.cs
- ArithmeticException.cs
- TextRangeProviderWrapper.cs
- DiagnosticTraceSource.cs
- FileLevelControlBuilderAttribute.cs
- BindingSource.cs
- RuntimeConfigurationRecord.cs
- XmlSchemaInferenceException.cs
- RegexRunner.cs
- SamlAssertionKeyIdentifierClause.cs
- XhtmlTextWriter.cs
- DataGridViewSelectedCellCollection.cs
- StreamingContext.cs
- GlobalItem.cs
- DataGridItem.cs
- ExponentialEase.cs
- TreeViewItemAutomationPeer.cs
- xml.cs
- CompilationUtil.cs
- OdbcUtils.cs
- EpmContentSerializer.cs
- TranslateTransform3D.cs
- BuildProviderAppliesToAttribute.cs
- glyphs.cs
- SpeechSeg.cs
- WorkflowView.cs
- UnauthorizedWebPart.cs
- AliasGenerator.cs
- ISO2022Encoding.cs
- DecimalAnimation.cs
- SimplePropertyEntry.cs
- EllipticalNodeOperations.cs
- DbConnectionPoolCounters.cs
- PriorityBinding.cs
- assemblycache.cs
- StartUpEventArgs.cs