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
- FloatAverageAggregationOperator.cs
- ServiceMoniker.cs
- SafeProcessHandle.cs
- FontInfo.cs
- ImageClickEventArgs.cs
- LinkClickEvent.cs
- TargetParameterCountException.cs
- ObjectItemNoOpAssemblyLoader.cs
- HttpContextWrapper.cs
- PolicyManager.cs
- SHA512Managed.cs
- SafeEventLogReadHandle.cs
- Span.cs
- Array.cs
- XmlSchemaParticle.cs
- XmlWriter.cs
- DesignerLabelAdapter.cs
- HwndStylusInputProvider.cs
- DataRowComparer.cs
- ClosureBinding.cs
- QueryCursorEventArgs.cs
- ChangesetResponse.cs
- sapiproxy.cs
- TransformationRules.cs
- EntityCollection.cs
- StreamingContext.cs
- Stylus.cs
- MethodCallConverter.cs
- ColumnCollection.cs
- DomNameTable.cs
- CollectionViewSource.cs
- DataGridViewComboBoxCell.cs
- HGlobalSafeHandle.cs
- DbConnectionPoolGroupProviderInfo.cs
- MediaScriptCommandRoutedEventArgs.cs
- SimpleType.cs
- XmlNamespaceMapping.cs
- PrivilegeNotHeldException.cs
- DynamicContractTypeBuilder.cs
- SpeechUI.cs
- InvokeProviderWrapper.cs
- ReaderWriterLock.cs
- DiscreteKeyFrames.cs
- SqlRowUpdatedEvent.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- CodeGen.cs
- UrlMappingCollection.cs
- MorphHelper.cs
- StringToken.cs
- PDBReader.cs
- PluralizationServiceUtil.cs
- QueryStringParameter.cs
- XmlSignificantWhitespace.cs
- BooleanAnimationUsingKeyFrames.cs
- SafeEventLogWriteHandle.cs
- DataGridViewRowCancelEventArgs.cs
- SqlHelper.cs
- DataControlImageButton.cs
- TextHidden.cs
- IntPtr.cs
- DataTableReader.cs
- WindowsContainer.cs
- Profiler.cs
- RequestStatusBarUpdateEventArgs.cs
- EventLogReader.cs
- FormsAuthenticationCredentials.cs
- unsafenativemethodstextservices.cs
- ResourceDescriptionAttribute.cs
- TimeEnumHelper.cs
- SafeRightsManagementPubHandle.cs
- MdImport.cs
- XmlSchemaSimpleTypeList.cs
- SqlCacheDependencyDatabaseCollection.cs
- ServiceHostFactory.cs
- MenuCommands.cs
- PermissionToken.cs
- Variable.cs
- LabelDesigner.cs
- CachedRequestParams.cs
- TextBreakpoint.cs
- WinFormsSpinner.cs
- XmlNamespaceDeclarationsAttribute.cs
- DynamicDocumentPaginator.cs
- DesignerVerbCollection.cs
- WebServiceTypeData.cs
- HtmlInputCheckBox.cs
- QilChoice.cs
- RootProfilePropertySettingsCollection.cs
- XmlNodeComparer.cs
- TextWriter.cs
- TextElementEditingBehaviorAttribute.cs
- GuidelineSet.cs
- MultiBindingExpression.cs
- AuthenticationService.cs
- ListBoxItemAutomationPeer.cs
- Separator.cs
- PrintControllerWithStatusDialog.cs
- DockPatternIdentifiers.cs
- CellConstant.cs
- XamlBrushSerializer.cs