Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / Label.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InlineCollection.cs
- NonParentingControl.cs
- ContentIterators.cs
- WebPartVerbCollection.cs
- WebConfigurationFileMap.cs
- TranslateTransform3D.cs
- ListSourceHelper.cs
- TemplateBaseAction.cs
- ManagedWndProcTracker.cs
- RIPEMD160Managed.cs
- TypeElementCollection.cs
- PeerObject.cs
- StatusBarAutomationPeer.cs
- DefaultParameterValueAttribute.cs
- ControlCommandSet.cs
- DoubleLink.cs
- HttpDictionary.cs
- WmpBitmapEncoder.cs
- IRCollection.cs
- SecurityCriticalDataForSet.cs
- DateTimeOffset.cs
- Win32MouseDevice.cs
- COM2PictureConverter.cs
- ToolboxDataAttribute.cs
- ObjectStorage.cs
- ImageDrawing.cs
- TypeLibConverter.cs
- RemotingConfiguration.cs
- JulianCalendar.cs
- PlaceHolder.cs
- LinearQuaternionKeyFrame.cs
- LinkAreaEditor.cs
- IgnoreFileBuildProvider.cs
- PropertyAccessVisitor.cs
- DataSourceCache.cs
- Stopwatch.cs
- PrintPreviewControl.cs
- TraceListeners.cs
- COAUTHIDENTITY.cs
- CheckPair.cs
- SiteMapDataSource.cs
- DataGridViewCellStyleChangedEventArgs.cs
- StateBag.cs
- baseaxisquery.cs
- RuntimeConfigLKG.cs
- formatter.cs
- TextWriterEngine.cs
- ModuleBuilderData.cs
- DateTimeFormatInfoScanner.cs
- CorrelationResolver.cs
- Mapping.cs
- PathFigureCollection.cs
- CancelEventArgs.cs
- LoadedOrUnloadedOperation.cs
- AuthenticationSection.cs
- RemotingAttributes.cs
- FileCodeGroup.cs
- DrawingAttributesDefaultValueFactory.cs
- FrameworkObject.cs
- nulltextcontainer.cs
- EllipticalNodeOperations.cs
- StylusPlugInCollection.cs
- FixedSOMPage.cs
- AstNode.cs
- SamlAssertionKeyIdentifierClause.cs
- FragmentQueryKB.cs
- UnionExpr.cs
- RelationshipNavigation.cs
- IProvider.cs
- HtmlInputHidden.cs
- GeneratedCodeAttribute.cs
- CodeMemberMethod.cs
- XPathEmptyIterator.cs
- TypeDelegator.cs
- RightsManagementUser.cs
- WmiEventSink.cs
- DecoderFallback.cs
- UnsafeNativeMethods.cs
- SignedXml.cs
- ShapingWorkspace.cs
- SqlGenerator.cs
- FamilyTypefaceCollection.cs
- FactoryId.cs
- AttributedMetaModel.cs
- Compensation.cs
- LoginCancelEventArgs.cs
- EndpointBehaviorElement.cs
- NavigationPropertyEmitter.cs
- Stopwatch.cs
- SoapSchemaExporter.cs
- DocumentViewerHelper.cs
- QilGenerator.cs
- SimpleBitVector32.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DBCommand.cs
- ListView.cs
- EnumType.cs
- ActivityFunc.cs
- CollectionType.cs
- Compiler.cs