Code:
/ FX-1434 / FX-1434 / 1.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
- MsmqIntegrationBindingElement.cs
- TrackBarRenderer.cs
- TimelineClockCollection.cs
- DataGridViewRowCancelEventArgs.cs
- ContentDisposition.cs
- __Filters.cs
- ChildDocumentBlock.cs
- InheritanceContextHelper.cs
- XmlCodeExporter.cs
- ClientApiGenerator.cs
- EdmFunction.cs
- DataError.cs
- TrackingMemoryStreamFactory.cs
- LicenseManager.cs
- ColorConverter.cs
- X509Chain.cs
- ItemTypeToolStripMenuItem.cs
- DragEventArgs.cs
- _ScatterGatherBuffers.cs
- WindowsTreeView.cs
- GraphicsContext.cs
- EntitySetBaseCollection.cs
- MobileControlsSectionHelper.cs
- SchemaAttDef.cs
- InternalConfigRoot.cs
- ServicePointManager.cs
- WebPartVerbsEventArgs.cs
- OleDragDropHandler.cs
- regiisutil.cs
- XmlReader.cs
- Version.cs
- LogReserveAndAppendState.cs
- ConfigXmlCDataSection.cs
- IncrementalReadDecoders.cs
- TreeViewAutomationPeer.cs
- ServiceBehaviorElementCollection.cs
- TextEditorThreadLocalStore.cs
- URLMembershipCondition.cs
- XmlChoiceIdentifierAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- Package.cs
- MimeFormatExtensions.cs
- CaseStatementProjectedSlot.cs
- DomainUpDown.cs
- SafeFileMappingHandle.cs
- ListView.cs
- NullRuntimeConfig.cs
- ColumnProvider.cs
- ColumnResizeAdorner.cs
- PkcsUtils.cs
- ConnectionManagementSection.cs
- DesignerActionService.cs
- MetadataArtifactLoaderResource.cs
- LiteralTextContainerControlBuilder.cs
- StreamGeometry.cs
- TextSelectionHighlightLayer.cs
- TransportConfigurationTypeElement.cs
- ThemeDirectoryCompiler.cs
- RuleSetDialog.Designer.cs
- XmlEventCache.cs
- SequenceNumber.cs
- DbConnectionHelper.cs
- DPCustomTypeDescriptor.cs
- TableLayoutStyle.cs
- DrawingGroup.cs
- DoubleLink.cs
- ProfileGroupSettings.cs
- BooleanAnimationUsingKeyFrames.cs
- MissingMemberException.cs
- DataGridCommandEventArgs.cs
- FontCacheUtil.cs
- ListMarkerLine.cs
- ProcessModuleCollection.cs
- UrlParameterReader.cs
- ExtendedTransformFactory.cs
- DBParameter.cs
- TextSyndicationContent.cs
- BaseResourcesBuildProvider.cs
- TextSchema.cs
- SqlDataSourceSelectingEventArgs.cs
- BamlResourceSerializer.cs
- UserNameServiceElement.cs
- SoapTransportImporter.cs
- TreeNodeStyleCollection.cs
- ImageIndexConverter.cs
- XPathSelfQuery.cs
- SoapTypeAttribute.cs
- XmlMtomReader.cs
- HttpCapabilitiesSectionHandler.cs
- PLINQETWProvider.cs
- FileUtil.cs
- WebBrowsableAttribute.cs
- PropertyPathConverter.cs
- VisualStyleRenderer.cs
- ServicePoint.cs
- TraceSection.cs
- DecimalAnimationUsingKeyFrames.cs
- UriParserTemplates.cs
- FileFormatException.cs
- SettingsBase.cs