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
- CustomCategoryAttribute.cs
- StreamInfo.cs
- BitmapEffectState.cs
- AdCreatedEventArgs.cs
- TableRow.cs
- ScriptModule.cs
- MenuItemBindingCollection.cs
- SmtpTransport.cs
- Message.cs
- DayRenderEvent.cs
- ConstNode.cs
- OverlappedAsyncResult.cs
- StatusBarItemAutomationPeer.cs
- ConfigWriter.cs
- messageonlyhwndwrapper.cs
- diagnosticsswitches.cs
- validationstate.cs
- DataTableReader.cs
- CompensatableTransactionScopeActivityDesigner.cs
- SendMessageContent.cs
- ProgressBarBrushConverter.cs
- BooleanStorage.cs
- _ListenerResponseStream.cs
- HtmlCalendarAdapter.cs
- AssemblyName.cs
- Repeater.cs
- EDesignUtil.cs
- HttpModuleCollection.cs
- BaseResourcesBuildProvider.cs
- DataGridParentRows.cs
- BindingManagerDataErrorEventArgs.cs
- ArrayWithOffset.cs
- ILGen.cs
- TraceSource.cs
- ListComponentEditor.cs
- PrimaryKeyTypeConverter.cs
- WasHttpModulesInstallComponent.cs
- XmlSchemaExporter.cs
- ComMethodElementCollection.cs
- TreeView.cs
- Scene3D.cs
- SqlDelegatedTransaction.cs
- FilteredAttributeCollection.cs
- updatecommandorderer.cs
- TypeHelper.cs
- PolyLineSegmentFigureLogic.cs
- ReadWriteSpinLock.cs
- Math.cs
- ModulesEntry.cs
- AlphabeticalEnumConverter.cs
- UIHelper.cs
- ImmComposition.cs
- DesignSurfaceServiceContainer.cs
- URLAttribute.cs
- RoleBoolean.cs
- ObjectPersistData.cs
- CharacterBuffer.cs
- MediaElementAutomationPeer.cs
- PassportAuthentication.cs
- QueryCacheEntry.cs
- HiddenField.cs
- CodePageUtils.cs
- XmlSchemaObjectTable.cs
- XmlSchemaException.cs
- SchemaObjectWriter.cs
- RotationValidation.cs
- WindowHideOrCloseTracker.cs
- ForeignKeyConstraint.cs
- SoapSchemaMember.cs
- ModuleConfigurationInfo.cs
- EnvelopedPkcs7.cs
- WebPartActionVerb.cs
- UnknownWrapper.cs
- ValidationResults.cs
- XmlRootAttribute.cs
- PrimitiveSchema.cs
- PositiveTimeSpanValidator.cs
- Attributes.cs
- EncryptedKey.cs
- DataViewSetting.cs
- PenThread.cs
- RegexStringValidator.cs
- Permission.cs
- DetailsViewDeleteEventArgs.cs
- ToolStripEditorManager.cs
- SafeCloseHandleCritical.cs
- CipherData.cs
- XmlIlVisitor.cs
- XPathDocumentNavigator.cs
- ConsumerConnectionPoint.cs
- OleDbParameter.cs
- Assembly.cs
- MultiView.cs
- HttpContextServiceHost.cs
- FunctionImportElement.cs
- TextOutput.cs
- XPathNode.cs
- SqlTypeSystemProvider.cs
- BamlResourceSerializer.cs
- filewebrequest.cs