Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / Emit / StringToken.cs / 1 / StringToken.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: StringToken ** ** ** Purpose: Represents a String to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public struct StringToken { internal int m_string; //public StringToken() { // m_string=0; //} internal StringToken(int str) { m_string=str; } // Returns the metadata token for this particular string. // Generated by a call to Module.GetStringConstant(). // public int Token { get { return m_string; } } public override int GetHashCode() { return m_string; } public override bool Equals(Object obj) { if (obj is StringToken) return Equals((StringToken)obj); else return false; } public bool Equals(StringToken obj) { return obj.m_string == m_string; } public static bool operator ==(StringToken a, StringToken b) { return a.Equals(b); } public static bool operator !=(StringToken a, StringToken b) { return !(a == b); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RectangleF.cs
- RTLAwareMessageBox.cs
- TreeNodeCollection.cs
- ThaiBuddhistCalendar.cs
- DragCompletedEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- FixedSOMPage.cs
- Listen.cs
- ForeignConstraint.cs
- EncryptedType.cs
- DesignerSerializerAttribute.cs
- MgmtConfigurationRecord.cs
- FormsAuthenticationUserCollection.cs
- sqlstateclientmanager.cs
- IsolatedStorageSecurityState.cs
- SqlXmlStorage.cs
- CacheRequest.cs
- Color.cs
- ActivatableWorkflowsQueryResult.cs
- SmtpException.cs
- CharUnicodeInfo.cs
- StringFormat.cs
- ConnectionPoint.cs
- ImageIndexConverter.cs
- ListBoxItemWrapperAutomationPeer.cs
- ActiveXContainer.cs
- ProgressBarAutomationPeer.cs
- PageStatePersister.cs
- base64Transforms.cs
- LogicalCallContext.cs
- SqlAggregateChecker.cs
- GridViewPageEventArgs.cs
- XomlCompilerError.cs
- MsmqTransportSecurityElement.cs
- ConfigurationValue.cs
- RemoteWebConfigurationHostServer.cs
- Application.cs
- Encoder.cs
- BreakSafeBase.cs
- Encoding.cs
- TypeForwardedToAttribute.cs
- ShapeTypeface.cs
- StatusBarAutomationPeer.cs
- PropertyChangingEventArgs.cs
- ListBoxChrome.cs
- StringCollection.cs
- XmlHierarchicalEnumerable.cs
- ClientRoleProvider.cs
- Stacktrace.cs
- DoubleCollectionValueSerializer.cs
- TextDecoration.cs
- MobileUserControl.cs
- MouseGestureValueSerializer.cs
- DtrList.cs
- XPathDocumentNavigator.cs
- ZoomPercentageConverter.cs
- OdbcRowUpdatingEvent.cs
- ValidationError.cs
- OleDbParameterCollection.cs
- CodeObject.cs
- mda.cs
- AssemblyAttributes.cs
- BitmapPalette.cs
- ControlCollection.cs
- UriScheme.cs
- SQlBooleanStorage.cs
- PointCollection.cs
- ActivationArguments.cs
- RevocationPoint.cs
- NativeMethods.cs
- WebBaseEventKeyComparer.cs
- FileAuthorizationModule.cs
- XMLSchema.cs
- OracleTransaction.cs
- FontWeight.cs
- PropertyItemInternal.cs
- FocusManager.cs
- ReflectionPermission.cs
- XamlInterfaces.cs
- TdsParameterSetter.cs
- DataMisalignedException.cs
- Camera.cs
- CompositeActivityCodeGenerator.cs
- SoapFault.cs
- ProfileSettingsCollection.cs
- ManipulationDeltaEventArgs.cs
- PocoPropertyAccessorStrategy.cs
- DataList.cs
- SmiTypedGetterSetter.cs
- FileIOPermission.cs
- DurableInstanceManager.cs
- DataGridState.cs
- ResourceDictionary.cs
- BitmapEffectDrawing.cs
- WindowShowOrOpenTracker.cs
- DocumentPageTextView.cs
- TypeUsageBuilder.cs
- XmlEntityReference.cs
- TraceSection.cs
- Site.cs