Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / StringToken.cs / 1305376 / 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); } } } // 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
- WarningException.cs
- MouseActionConverter.cs
- ToolStripDesignerUtils.cs
- HttpApplicationFactory.cs
- DataGridCommandEventArgs.cs
- DelegatedStream.cs
- RemotingConfigParser.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- FontDifferentiator.cs
- WebPartConnectionsCancelEventArgs.cs
- PrePrepareMethodAttribute.cs
- MulticastNotSupportedException.cs
- ManipulationStartingEventArgs.cs
- SchemaElement.cs
- SHA512Managed.cs
- XamlReaderHelper.cs
- XPathNodeHelper.cs
- CorrelationInitializer.cs
- TypeLoadException.cs
- EntityContainer.cs
- WebPartCatalogAddVerb.cs
- NativeBuffer.cs
- BrowserCapabilitiesCompiler.cs
- RSAPKCS1SignatureFormatter.cs
- SoapReflectionImporter.cs
- String.cs
- IntSumAggregationOperator.cs
- sqlstateclientmanager.cs
- HelpInfo.cs
- SqlDataSourceDesigner.cs
- GraphicsPathIterator.cs
- Scripts.cs
- DbCommandTree.cs
- DoubleAnimationUsingKeyFrames.cs
- ChannelFactory.cs
- HwndHostAutomationPeer.cs
- StrokeCollection2.cs
- XPathNode.cs
- ToolStripGripRenderEventArgs.cs
- Size3D.cs
- MinMaxParagraphWidth.cs
- SmtpTransport.cs
- ZipIORawDataFileBlock.cs
- OperationContractGenerationContext.cs
- InkPresenter.cs
- SqlGatherProducedAliases.cs
- CacheAxisQuery.cs
- HyperlinkAutomationPeer.cs
- CharConverter.cs
- Viewport3DVisual.cs
- entityreference_tresulttype.cs
- SessionIDManager.cs
- AutomationElement.cs
- HebrewNumber.cs
- ImpersonateTokenRef.cs
- RegexRunner.cs
- BitVector32.cs
- MouseOverProperty.cs
- XmlLoader.cs
- HelpEvent.cs
- WSFederationHttpSecurityMode.cs
- FixedSOMTableRow.cs
- BindingListCollectionView.cs
- WindowHideOrCloseTracker.cs
- PermissionAttributes.cs
- HtmlButton.cs
- MemoryStream.cs
- ApplicationDirectory.cs
- HierarchicalDataSourceControl.cs
- NamespaceMapping.cs
- InkCollectionBehavior.cs
- SliderAutomationPeer.cs
- XsltOutput.cs
- ListBoxAutomationPeer.cs
- HandlerWithFactory.cs
- PointAnimationBase.cs
- WsdlParser.cs
- DataFormats.cs
- HyperLinkStyle.cs
- SyntaxCheck.cs
- Vector3DCollectionConverter.cs
- _emptywebproxy.cs
- FrameworkElement.cs
- LinqDataSourceDisposeEventArgs.cs
- SimpleModelProvider.cs
- ProtocolsConfiguration.cs
- ProgramNode.cs
- ThemeableAttribute.cs
- TagMapCollection.cs
- QuotedPrintableStream.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- RuleSetBrowserDialog.cs
- ReferenceSchema.cs
- EncryptedKeyIdentifierClause.cs
- EdmEntityTypeAttribute.cs
- StateDesigner.TransitionInfo.cs
- AssociatedControlConverter.cs
- AuthenticationException.cs
- SAPICategories.cs
- EditCommandColumn.cs