Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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
- TextServicesCompartmentEventSink.cs
- CompiledIdentityConstraint.cs
- Debugger.cs
- RawMouseInputReport.cs
- ScriptingSectionGroup.cs
- SqlDependency.cs
- AlphabetConverter.cs
- DataServiceHostFactory.cs
- EventDrivenDesigner.cs
- AsymmetricSignatureDeformatter.cs
- PropertyConverter.cs
- WindowsButton.cs
- TreeViewImageGenerator.cs
- FSWPathEditor.cs
- LOSFormatter.cs
- ManagementNamedValueCollection.cs
- XsltConvert.cs
- DoubleCollectionValueSerializer.cs
- PeerNameRegistration.cs
- IOException.cs
- baseaxisquery.cs
- InputLanguage.cs
- LateBoundBitmapDecoder.cs
- SynchronizedCollection.cs
- PeerPresenceInfo.cs
- CaseExpr.cs
- DataGridColumn.cs
- EmptyCollection.cs
- WeakReference.cs
- SrgsText.cs
- StreamInfo.cs
- ClientSideQueueItem.cs
- InteropAutomationProvider.cs
- EntitySqlQueryCacheKey.cs
- SettingsSection.cs
- MonthCalendarDesigner.cs
- ListenerServiceInstallComponent.cs
- XPathMultyIterator.cs
- RowsCopiedEventArgs.cs
- XmlSchemaGroup.cs
- HtmlShim.cs
- CodeAttributeArgumentCollection.cs
- BufferedWebEventProvider.cs
- ExpressionLink.cs
- ComponentResourceKeyConverter.cs
- TimelineCollection.cs
- Constraint.cs
- GeneratedCodeAttribute.cs
- CngProperty.cs
- SafeRightsManagementQueryHandle.cs
- Aggregates.cs
- PerformanceCountersElement.cs
- TemplateXamlTreeBuilder.cs
- HttpDebugHandler.cs
- EventRoute.cs
- OLEDB_Util.cs
- WindowsImpersonationContext.cs
- Point3DKeyFrameCollection.cs
- WizardForm.cs
- StringStorage.cs
- AtomMaterializerLog.cs
- VirtualPath.cs
- IdentityHolder.cs
- ScrollProperties.cs
- AnnotationObservableCollection.cs
- PenContexts.cs
- RuntimeHandles.cs
- ClientType.cs
- DependentTransaction.cs
- XmlHelper.cs
- Ops.cs
- SingleAnimationUsingKeyFrames.cs
- MetadataArtifactLoaderResource.cs
- TransformerInfo.cs
- DataTableReader.cs
- DocumentOrderComparer.cs
- DoubleMinMaxAggregationOperator.cs
- DateTimeStorage.cs
- AlternateViewCollection.cs
- FormatPage.cs
- FontWeightConverter.cs
- GeneralTransform.cs
- IndexingContentUnit.cs
- IList.cs
- FormClosingEvent.cs
- TrackBarDesigner.cs
- DateTimeFormatInfoScanner.cs
- ServiceNameCollection.cs
- ModelTreeManager.cs
- PageAsyncTask.cs
- PopupEventArgs.cs
- SrgsRulesCollection.cs
- DynamicRenderer.cs
- SchemaTypeEmitter.cs
- SecurityManager.cs
- SpanIndex.cs
- WebPartConnectionsEventArgs.cs
- CngKeyCreationParameters.cs
- XmlSerializerOperationGenerator.cs
- ControlCachePolicy.cs