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
- NavigationPropertyEmitter.cs
- DefinitionUpdate.cs
- CompModSwitches.cs
- GridViewUpdatedEventArgs.cs
- FacetEnabledSchemaElement.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- NameObjectCollectionBase.cs
- SupportsPreviewControlAttribute.cs
- ToolboxItem.cs
- MissingFieldException.cs
- SafePointer.cs
- ValueType.cs
- NotifyInputEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- TreeNodeBindingCollection.cs
- StateManagedCollection.cs
- GregorianCalendarHelper.cs
- SerializationInfoEnumerator.cs
- QilChoice.cs
- SendMailErrorEventArgs.cs
- NullableFloatAverageAggregationOperator.cs
- CapabilitiesPattern.cs
- EraserBehavior.cs
- SimpleExpression.cs
- FieldCollectionEditor.cs
- ReliableMessagingVersionConverter.cs
- MemberRestriction.cs
- Constants.cs
- X509Utils.cs
- WebBrowserNavigatedEventHandler.cs
- Int32Rect.cs
- DecimalConverter.cs
- FloaterBaseParagraph.cs
- ToolStripItemEventArgs.cs
- OneOfScalarConst.cs
- ScrollEventArgs.cs
- UseLicense.cs
- SchemaElementDecl.cs
- TextLine.cs
- WindowsPrincipal.cs
- SystemIcons.cs
- BookmarkOptionsHelper.cs
- CloseSequenceResponse.cs
- BindingUtils.cs
- OperationResponse.cs
- AdornedElementPlaceholder.cs
- LazyTextWriterCreator.cs
- HttpPostedFileWrapper.cs
- HScrollBar.cs
- RulePatternOps.cs
- CurrencyWrapper.cs
- DetailsViewUpdateEventArgs.cs
- DataControlPagerLinkButton.cs
- ProfilePropertySettings.cs
- ServiceNotStartedException.cs
- XmlSequenceWriter.cs
- FactoryMaker.cs
- ObjRef.cs
- NamespaceEmitter.cs
- FixedPageAutomationPeer.cs
- ContextInformation.cs
- CheckBoxFlatAdapter.cs
- XamlSerializationHelper.cs
- SortDescription.cs
- ProcessHost.cs
- CellParaClient.cs
- DataServiceRequestArgs.cs
- BufferedOutputStream.cs
- PerfService.cs
- DbDataReader.cs
- AsymmetricKeyExchangeDeformatter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Size.cs
- DataObjectAttribute.cs
- Decimal.cs
- NamespaceExpr.cs
- DateTimeSerializationSection.cs
- BaseTemplateBuildProvider.cs
- RenderingEventArgs.cs
- Label.cs
- XmlElementAttributes.cs
- DesignerAttribute.cs
- WindowsFormsLinkLabel.cs
- TypeConverterHelper.cs
- InstalledVoice.cs
- VirtualPathProvider.cs
- FunctionNode.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- WebEventCodes.cs
- ObjectDataSourceStatusEventArgs.cs
- NameTable.cs
- SystemNetworkInterface.cs
- userdatakeys.cs
- UnknownBitmapEncoder.cs
- Timeline.cs
- precedingquery.cs
- EditingCoordinator.cs
- TimeSpanParse.cs
- Nodes.cs