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
- FixedSOMPageElement.cs
- InertiaExpansionBehavior.cs
- SignatureGenerator.cs
- RelationalExpressions.cs
- ScrollProviderWrapper.cs
- SafeSecurityHelper.cs
- DataGridItem.cs
- SettingsSection.cs
- XhtmlBasicLinkAdapter.cs
- CTreeGenerator.cs
- TextFindEngine.cs
- UrlAuthorizationModule.cs
- DataSourceControl.cs
- AbstractSvcMapFileLoader.cs
- StylusPointCollection.cs
- MasterPageBuildProvider.cs
- InProcStateClientManager.cs
- TextEditorContextMenu.cs
- Logging.cs
- SqlFlattener.cs
- ItemContainerProviderWrapper.cs
- MorphHelper.cs
- XmlNamespaceMappingCollection.cs
- ReflectionTypeLoadException.cs
- DbInsertCommandTree.cs
- IApplicationTrustManager.cs
- ReachDocumentSequenceSerializer.cs
- Subtree.cs
- CommandField.cs
- ScrollPatternIdentifiers.cs
- HttpDigestClientCredential.cs
- Int64Converter.cs
- XmlCharCheckingWriter.cs
- BrowserInteropHelper.cs
- DateTimeStorage.cs
- MailBnfHelper.cs
- TdsParserStaticMethods.cs
- HttpCookieCollection.cs
- AnonymousIdentificationModule.cs
- BinaryFormatterWriter.cs
- HttpDateParse.cs
- ProcessModelSection.cs
- RecognizedPhrase.cs
- NoResizeSelectionBorderGlyph.cs
- SqlPersonalizationProvider.cs
- TabControlAutomationPeer.cs
- DropTarget.cs
- CssStyleCollection.cs
- PointAnimationClockResource.cs
- InheritablePropertyChangeInfo.cs
- DataGrid.cs
- ServiceHostFactory.cs
- WorkflowCreationContext.cs
- ProfileModule.cs
- ProcessThread.cs
- controlskin.cs
- ConstraintStruct.cs
- ImageDrawing.cs
- XmlSchemaSimpleTypeUnion.cs
- TraceSection.cs
- BridgeDataRecord.cs
- HuffModule.cs
- AvtEvent.cs
- Preprocessor.cs
- XmlSchemaSequence.cs
- DefaultParameterValueAttribute.cs
- AttachInfo.cs
- FieldTemplateUserControl.cs
- Operator.cs
- DropDownList.cs
- DoWorkEventArgs.cs
- UIElementPropertyUndoUnit.cs
- DocumentStream.cs
- CellTreeNodeVisitors.cs
- TimestampInformation.cs
- UnionExpr.cs
- MailWriter.cs
- datacache.cs
- __TransparentProxy.cs
- NumericUpDownAccelerationCollection.cs
- ComplexPropertyEntry.cs
- TextProviderWrapper.cs
- SingleTagSectionHandler.cs
- WebBrowserNavigatingEventHandler.cs
- Pointer.cs
- QilExpression.cs
- AppDomainAttributes.cs
- LockCookie.cs
- RuleProcessor.cs
- TextEditorSelection.cs
- WebPartsSection.cs
- FastEncoder.cs
- XmlDictionaryReader.cs
- assemblycache.cs
- PointCollection.cs
- XsdDateTime.cs
- PathFigure.cs
- Renderer.cs
- UnmanagedMemoryStreamWrapper.cs
- EntityEntry.cs