Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Reflection / Emit / Label.cs / 1 / Label.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: Label ** ** ** ** Purpose: Represents a Label to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; using System.Runtime.InteropServices; // The Label class is an opaque representation of a label used by the // ILGenerator class. The token is used to mark where labels occur in the IL // stream and then the necessary offsets are put back in the code when the ILGenerator // is passed to the MethodWriter. // Labels are created by using ILGenerator.CreateLabel and their position is set // by using ILGenerator.MarkLabel. [Serializable()] [ComVisible(true)] public struct Label { internal int m_label; //public Label() { // m_label=0; //} internal Label (int label) { m_label=label; } internal int GetLabelValue() { return m_label; } public override int GetHashCode() { return m_label; } public override bool Equals(Object obj) { if (obj is Label) return Equals((Label)obj); else return false; } public bool Equals(Label obj) { return obj.m_label == m_label; } public static bool operator ==(Label a, Label b) { return a.Equals(b); } public static bool operator !=(Label a, Label b) { return !(a == b); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: Label ** ** ** ** Purpose: Represents a Label to the ILGenerator class. ** ** ===========================================================*/ namespace System.Reflection.Emit { using System; using System.Reflection; using System.Security.Permissions; using System.Runtime.InteropServices; // The Label class is an opaque representation of a label used by the // ILGenerator class. The token is used to mark where labels occur in the IL // stream and then the necessary offsets are put back in the code when the ILGenerator // is passed to the MethodWriter. // Labels are created by using ILGenerator.CreateLabel and their position is set // by using ILGenerator.MarkLabel. [Serializable()] [ComVisible(true)] public struct Label { internal int m_label; //public Label() { // m_label=0; //} internal Label (int label) { m_label=label; } internal int GetLabelValue() { return m_label; } public override int GetHashCode() { return m_label; } public override bool Equals(Object obj) { if (obj is Label) return Equals((Label)obj); else return false; } public bool Equals(Label obj) { return obj.m_label == m_label; } public static bool operator ==(Label a, Label b) { return a.Equals(b); } public static bool operator !=(Label a, Label 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
- SqlMethodCallConverter.cs
- DataGridViewImageColumn.cs
- ListenerSessionConnectionReader.cs
- Bold.cs
- InputProcessorProfilesLoader.cs
- TokenizerHelper.cs
- BamlReader.cs
- DbConnectionHelper.cs
- NetworkAddressChange.cs
- CqlGenerator.cs
- PenThreadWorker.cs
- AssemblyCache.cs
- TemplateNameScope.cs
- CalendarItem.cs
- XmlSchemaAttributeGroup.cs
- UnmanagedMarshal.cs
- ReadOnlyDataSourceView.cs
- TableLayoutPanel.cs
- PreviewKeyDownEventArgs.cs
- SqlConnectionStringBuilder.cs
- PropertyTabChangedEvent.cs
- SQLInt32Storage.cs
- DocumentReference.cs
- ToolbarAUtomationPeer.cs
- Matrix.cs
- AttributeProviderAttribute.cs
- TemplateXamlParser.cs
- WorkflowQueueInfo.cs
- TemplatedMailWebEventProvider.cs
- KoreanCalendar.cs
- InvokeAction.cs
- Border.cs
- Roles.cs
- ComponentConverter.cs
- XmlSerializerAssemblyAttribute.cs
- ResourceDictionaryCollection.cs
- SelectionProviderWrapper.cs
- DataGridViewCellStyleConverter.cs
- ValidatorCompatibilityHelper.cs
- CursorInteropHelper.cs
- Environment.cs
- ParentQuery.cs
- EventBuilder.cs
- EntityTransaction.cs
- CurrentTimeZone.cs
- SessionEndedEventArgs.cs
- ComUdtElementCollection.cs
- ConstrainedDataObject.cs
- MatrixConverter.cs
- WebPartManager.cs
- securestring.cs
- SQLSingleStorage.cs
- FontInfo.cs
- WebReferenceCollection.cs
- ManagedFilter.cs
- PropertyMapper.cs
- _NtlmClient.cs
- LocatorBase.cs
- XmlCharacterData.cs
- SettingsProperty.cs
- DescendantBaseQuery.cs
- ConnectionManagementElementCollection.cs
- GroupBoxAutomationPeer.cs
- CultureSpecificStringDictionary.cs
- DataServiceExpressionVisitor.cs
- WinEventQueueItem.cs
- HitTestDrawingContextWalker.cs
- StrokeSerializer.cs
- FileUtil.cs
- LinkedList.cs
- MostlySingletonList.cs
- DynamicPropertyHolder.cs
- XmlProcessingInstruction.cs
- UndirectedGraph.cs
- DbProviderSpecificTypePropertyAttribute.cs
- QilDataSource.cs
- Merger.cs
- HostedBindingBehavior.cs
- MasterPageBuildProvider.cs
- UpdateEventArgs.cs
- AutomationPattern.cs
- XmlSchemaGroupRef.cs
- SimpleType.cs
- MethodRental.cs
- HttpModuleCollection.cs
- AutoResetEvent.cs
- MultiDataTrigger.cs
- XmlILConstructAnalyzer.cs
- ExpressionBuilder.cs
- DataSourceCache.cs
- UnaryOperationBinder.cs
- XNameTypeConverter.cs
- ObjectDataSourceSelectingEventArgs.cs
- LicenseException.cs
- XmlName.cs
- SendKeys.cs
- DbConnectionStringBuilder.cs
- TemplateInstanceAttribute.cs
- DataGridItemCollection.cs
- CellNormalizer.cs