Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputText.cs
- ColorDialog.cs
- XmlHierarchicalEnumerable.cs
- ControlAdapter.cs
- ScriptingProfileServiceSection.cs
- BitVector32.cs
- CompositionAdorner.cs
- MonthCalendar.cs
- AsyncOperationManager.cs
- ServicePoint.cs
- ProfileEventArgs.cs
- TableDetailsRow.cs
- TokenBasedSetEnumerator.cs
- CfgParser.cs
- ListSourceHelper.cs
- EdmToObjectNamespaceMap.cs
- WindowsFormsHostPropertyMap.cs
- DocumentCollection.cs
- PackagePart.cs
- XmlCDATASection.cs
- RuntimeConfigLKG.cs
- XPathNavigatorKeyComparer.cs
- Canvas.cs
- TagMapInfo.cs
- Rotation3DKeyFrameCollection.cs
- LOSFormatter.cs
- BoundColumn.cs
- TypeExtensionConverter.cs
- UnaryNode.cs
- TextSchema.cs
- ControlCollection.cs
- ArgumentOutOfRangeException.cs
- ConfigurationStrings.cs
- PrivilegeNotHeldException.cs
- SafeHandle.cs
- TextEditorThreadLocalStore.cs
- WebSysDisplayNameAttribute.cs
- HtmlMeta.cs
- DeferredElementTreeState.cs
- ResXResourceWriter.cs
- DesignerEventService.cs
- XmlnsCache.cs
- HandlerFactoryCache.cs
- OpacityConverter.cs
- DataGridViewRow.cs
- CodeNamespaceImportCollection.cs
- UniqueIdentifierService.cs
- MetadataArtifactLoaderCompositeFile.cs
- EmptyWithCancelationCheckWorkItem.cs
- TextChange.cs
- DetailsViewUpdatedEventArgs.cs
- ShowExpandedMultiValueConverter.cs
- ZoneLinkButton.cs
- IndexedString.cs
- BooleanFunctions.cs
- XmlSchemaSimpleContentExtension.cs
- AdornerPresentationContext.cs
- StylusButtonCollection.cs
- FixedElement.cs
- RestClientProxyHandler.cs
- TabPage.cs
- UInt32Storage.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- TextBounds.cs
- mediaeventshelper.cs
- mediaeventargs.cs
- XmlSchemaSimpleContentExtension.cs
- BamlTreeMap.cs
- OletxEnlistment.cs
- FontCollection.cs
- WasAdminWrapper.cs
- AdRotator.cs
- VectorCollection.cs
- Baml6ConstructorInfo.cs
- PeerHopCountAttribute.cs
- SingleConverter.cs
- Types.cs
- SqlMethodTransformer.cs
- DBDataPermissionAttribute.cs
- MetadataUtilsSmi.cs
- OleDbRowUpdatedEvent.cs
- Missing.cs
- RegexCharClass.cs
- ExpressionTable.cs
- XamlSerializerUtil.cs
- DataSourceXmlSerializer.cs
- GregorianCalendar.cs
- LogicalMethodInfo.cs
- LinearQuaternionKeyFrame.cs
- OdbcConnectionOpen.cs
- BuildManagerHost.cs
- TraceUtils.cs
- LinqDataSourceDisposeEventArgs.cs
- TemplateBindingExtensionConverter.cs
- CompositionTarget.cs
- EntityDataSourceColumn.cs
- HierarchicalDataBoundControl.cs
- DeclarativeCatalogPartDesigner.cs
- RadioButtonFlatAdapter.cs
- EncoderExceptionFallback.cs