Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CommandHelper.cs
- SelectionItemProviderWrapper.cs
- ConfigurationPropertyAttribute.cs
- DocumentViewerHelper.cs
- JsonWriterDelegator.cs
- DesignerHelpers.cs
- XamlTreeBuilderBamlRecordWriter.cs
- basecomparevalidator.cs
- TextRunTypographyProperties.cs
- HtmlWindow.cs
- LogArchiveSnapshot.cs
- HotSpotCollection.cs
- MouseActionValueSerializer.cs
- LicenseProviderAttribute.cs
- EntryPointNotFoundException.cs
- SessionIDManager.cs
- InvokeDelegate.cs
- OracleFactory.cs
- InvalidCastException.cs
- ResourcePool.cs
- DesignerTextWriter.cs
- ObjectIDGenerator.cs
- DispatchWrapper.cs
- HttpModuleActionCollection.cs
- FormattedTextSymbols.cs
- ForeignKeyConstraint.cs
- FlowLayoutSettings.cs
- CalendarDay.cs
- LinearQuaternionKeyFrame.cs
- COM2PropertyPageUITypeConverter.cs
- StreamReader.cs
- DataGridState.cs
- Guid.cs
- DbConnectionPoolOptions.cs
- LineSegment.cs
- UserMapPath.cs
- HandlerMappingMemo.cs
- NativeWrapper.cs
- TypeDescriptorFilterService.cs
- TextTrailingWordEllipsis.cs
- TwoPhaseCommitProxy.cs
- ExceptionCollection.cs
- FormsAuthenticationEventArgs.cs
- WinInet.cs
- DataGridViewColumnTypePicker.cs
- Propagator.ExtentPlaceholderCreator.cs
- CqlWriter.cs
- TextSyndicationContent.cs
- Attributes.cs
- XmlSchemaSimpleContentRestriction.cs
- TargetControlTypeCache.cs
- TypeDescriptionProviderAttribute.cs
- MultiPropertyDescriptorGridEntry.cs
- CodeObject.cs
- NameValuePair.cs
- NullableIntSumAggregationOperator.cs
- RowUpdatingEventArgs.cs
- EntitySqlException.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- Selection.cs
- EntityTypeBase.cs
- EmbossBitmapEffect.cs
- followingsibling.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- ErrorHandler.cs
- CommandID.cs
- WmpBitmapEncoder.cs
- VirtualDirectoryMappingCollection.cs
- Timer.cs
- Peer.cs
- X509RawDataKeyIdentifierClause.cs
- CodeTypeDeclaration.cs
- SafeFileMappingHandle.cs
- UInt64.cs
- RegexCaptureCollection.cs
- DelayedRegex.cs
- ReadOnlyDictionary.cs
- DeferrableContent.cs
- MsmqIntegrationValidationBehavior.cs
- SortedDictionary.cs
- TemplateControlParser.cs
- DataGridTable.cs
- GenericEnumConverter.cs
- ApplicationSecurityManager.cs
- ListViewContainer.cs
- ErrorFormatter.cs
- Win32SafeHandles.cs
- DataKeyArray.cs
- XmlProcessingInstruction.cs
- SolidBrush.cs
- SecurityUniqueId.cs
- AdornerPresentationContext.cs
- GB18030Encoding.cs
- SiteMapPath.cs
- RectAnimationUsingKeyFrames.cs
- SpellerError.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DbProviderFactories.cs
- PropertyFilter.cs
- ValueProviderWrapper.cs