Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IdleTimeoutMonitor.cs
- Freezable.cs
- EventBuilder.cs
- ExceptionNotification.cs
- ObjectSecurity.cs
- AlgoModule.cs
- WmpBitmapEncoder.cs
- CharAnimationUsingKeyFrames.cs
- BamlBinaryReader.cs
- SafeLibraryHandle.cs
- HijriCalendar.cs
- ManagementBaseObject.cs
- InertiaTranslationBehavior.cs
- SqlDataSourceCustomCommandPanel.cs
- TypeLibConverter.cs
- XmlJsonReader.cs
- TextParentUndoUnit.cs
- FontConverter.cs
- sqlcontext.cs
- URLMembershipCondition.cs
- OleDbPropertySetGuid.cs
- UIElementCollection.cs
- KoreanLunisolarCalendar.cs
- FontStyle.cs
- ServerValidateEventArgs.cs
- HostedElements.cs
- ValidationResult.cs
- ObjectAnimationBase.cs
- ColumnHeader.cs
- WindowsStatusBar.cs
- ServiceDiscoveryElement.cs
- XPathParser.cs
- InnerItemCollectionView.cs
- DoubleCollectionValueSerializer.cs
- KeyPressEvent.cs
- StylusCaptureWithinProperty.cs
- LocatorPartList.cs
- BitVector32.cs
- SymLanguageVendor.cs
- ArrayTypeMismatchException.cs
- XhtmlBasicValidationSummaryAdapter.cs
- RecordManager.cs
- RemotingAttributes.cs
- UnsafeNativeMethods.cs
- LinqExpressionNormalizer.cs
- X509Extension.cs
- DocumentAutomationPeer.cs
- VideoDrawing.cs
- X509ChainElement.cs
- PropertyGroupDescription.cs
- VirtualizingPanel.cs
- RuntimeConfig.cs
- ConfigXmlText.cs
- GC.cs
- RuntimeEnvironment.cs
- InvokeMethodActivity.cs
- AuthenticationManager.cs
- ContentDisposition.cs
- DbParameterCollection.cs
- MachineKeySection.cs
- VerificationAttribute.cs
- WebControlParameterProxy.cs
- EntityProviderFactory.cs
- SuppressMergeCheckAttribute.cs
- Executor.cs
- LocationUpdates.cs
- DependencyObject.cs
- Decoder.cs
- RegexWorker.cs
- MetadataProperty.cs
- SynchronizingStream.cs
- Pen.cs
- Token.cs
- QuaternionConverter.cs
- HitTestParameters.cs
- FileEnumerator.cs
- FormsAuthenticationCredentials.cs
- StrokeNodeOperations.cs
- OracleConnection.cs
- CompilerCollection.cs
- ItemsChangedEventArgs.cs
- AttachmentCollection.cs
- PolyBezierSegmentFigureLogic.cs
- CodeDesigner.cs
- ServiceHttpHandlerFactory.cs
- PrinterUnitConvert.cs
- PointAnimationUsingKeyFrames.cs
- InternalBufferOverflowException.cs
- AnyAllSearchOperator.cs
- HiddenFieldPageStatePersister.cs
- DebugInfoExpression.cs
- UInt16Storage.cs
- DictionaryBase.cs
- SqlDuplicator.cs
- StrokeCollection.cs
- sortedlist.cs
- LockRenewalTask.cs
- CreateUserWizardStep.cs
- ReadOnlyPropertyMetadata.cs
- InternalPermissions.cs