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
- FlowDecision.cs
- DataServiceException.cs
- CodeTypeConstructor.cs
- FutureFactory.cs
- TablePatternIdentifiers.cs
- Cell.cs
- EnumerableCollectionView.cs
- SendKeys.cs
- XmlCollation.cs
- SystemDiagnosticsSection.cs
- UpdateCommand.cs
- ListViewGroupItemCollection.cs
- StructuralType.cs
- EventHandlersDesigner.cs
- ToolStripDropDownItem.cs
- ExpressionEvaluator.cs
- ClonableStack.cs
- cookieexception.cs
- ToolboxSnapDragDropEventArgs.cs
- WindowsListViewGroupHelper.cs
- ClassicBorderDecorator.cs
- MethodAccessException.cs
- hwndwrapper.cs
- ServiceChannel.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- MsdtcClusterUtils.cs
- HMACMD5.cs
- BitmapSourceSafeMILHandle.cs
- FirstMatchCodeGroup.cs
- HotSpot.cs
- DataGridViewTextBoxColumn.cs
- pingexception.cs
- InvalidContentTypeException.cs
- StateInitialization.cs
- LocalFileSettingsProvider.cs
- SiteMapHierarchicalDataSourceView.cs
- DataColumnChangeEvent.cs
- DataGridViewRow.cs
- UserControlBuildProvider.cs
- Regex.cs
- GridViewSortEventArgs.cs
- ProcessModelInfo.cs
- NeutralResourcesLanguageAttribute.cs
- XmlSortKeyAccumulator.cs
- QueueNameHelper.cs
- ZipIOExtraFieldZip64Element.cs
- SymmetricAlgorithm.cs
- LayoutUtils.cs
- IndexedDataBuffer.cs
- Application.cs
- RequestDescription.cs
- NotSupportedException.cs
- SchemaCollectionPreprocessor.cs
- MostlySingletonList.cs
- ComPersistableTypeElement.cs
- DPCustomTypeDescriptor.cs
- SecureStringHasher.cs
- InvalidOperationException.cs
- VBIdentifierDesigner.xaml.cs
- ControlDesignerState.cs
- Label.cs
- GridViewDeleteEventArgs.cs
- UnicodeEncoding.cs
- PackageProperties.cs
- DateTimeSerializationSection.cs
- MD5CryptoServiceProvider.cs
- ValueQuery.cs
- MessageQueueKey.cs
- DockingAttribute.cs
- LiteralLink.cs
- Span.cs
- UniqueID.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- PropertyValueUIItem.cs
- InvalidAsynchronousStateException.cs
- StructuredCompositeActivityDesigner.cs
- EventLogPermissionEntry.cs
- IRCollection.cs
- BuildProvidersCompiler.cs
- ProxyManager.cs
- MetadataItemEmitter.cs
- EditorPart.cs
- Tablet.cs
- DataGridTextBoxColumn.cs
- SQLChars.cs
- WebPartZone.cs
- EnvironmentPermission.cs
- DefaultPropertiesToSend.cs
- ProfileElement.cs
- MemberCollection.cs
- DelegateSerializationHolder.cs
- ArrayWithOffset.cs
- MultiTrigger.cs
- RoutedEventHandlerInfo.cs
- RemotingSurrogateSelector.cs
- TemplateInstanceAttribute.cs
- DataTableReaderListener.cs
- Policy.cs
- ResourceKey.cs
- TimelineGroup.cs