Code:
/ FX-1434 / FX-1434 / 1.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
- TypedReference.cs
- TextBoxBase.cs
- TreeNodeConverter.cs
- PasswordDeriveBytes.cs
- ThrowHelper.cs
- PasswordBoxAutomationPeer.cs
- CapabilitiesAssignment.cs
- DataServiceRequest.cs
- DoubleAnimation.cs
- MailHeaderInfo.cs
- DoubleCollection.cs
- NamespaceDisplay.xaml.cs
- PolyQuadraticBezierSegment.cs
- CmsInterop.cs
- DefaultAsyncDataDispatcher.cs
- PrintDialog.cs
- _SSPISessionCache.cs
- MediaContextNotificationWindow.cs
- SqlFacetAttribute.cs
- XsdDataContractImporter.cs
- PictureBox.cs
- CmsInterop.cs
- DataPagerFieldItem.cs
- TableLayout.cs
- SmiMetaData.cs
- HostingEnvironmentException.cs
- RtfToXamlReader.cs
- ManipulationCompletedEventArgs.cs
- TypeAccessException.cs
- StaticSiteMapProvider.cs
- SplineQuaternionKeyFrame.cs
- BamlRecordReader.cs
- UnsafeNativeMethods.cs
- NetStream.cs
- DynamicResourceExtension.cs
- initElementDictionary.cs
- CodeIndexerExpression.cs
- TcpHostedTransportConfiguration.cs
- ToolBarOverflowPanel.cs
- WindowsToolbar.cs
- XmlQueryCardinality.cs
- AuthenticateEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- XpsManager.cs
- Point4D.cs
- OpenTypeLayout.cs
- LocatorPart.cs
- Point4D.cs
- ExpressionLexer.cs
- CapabilitiesSection.cs
- LayoutTable.cs
- TransformerInfo.cs
- WebPartCloseVerb.cs
- BitmapEffectOutputConnector.cs
- SHA1.cs
- SimpleType.cs
- SoapHttpTransportImporter.cs
- ListDictionaryInternal.cs
- DateTimeSerializationSection.cs
- Roles.cs
- NotSupportedException.cs
- Unit.cs
- SQLSingleStorage.cs
- MergeFilterQuery.cs
- PerspectiveCamera.cs
- JobInputBins.cs
- BitmapEffectrendercontext.cs
- TextRangeEdit.cs
- EventData.cs
- TextBoxBase.cs
- XmlValidatingReaderImpl.cs
- XamlContextStack.cs
- MouseActionValueSerializer.cs
- SafeCryptoHandles.cs
- OpCellTreeNode.cs
- FileLoadException.cs
- IsolatedStorageFile.cs
- SHA512.cs
- PingReply.cs
- PassportPrincipal.cs
- TemplateBindingExtension.cs
- CodePropertyReferenceExpression.cs
- AddInController.cs
- Translator.cs
- ImageButton.cs
- mediaeventargs.cs
- Dictionary.cs
- DesignerActionUIService.cs
- RefreshEventArgs.cs
- ManagedIStream.cs
- AppDomainEvidenceFactory.cs
- LocalServiceSecuritySettings.cs
- IpcChannelHelper.cs
- BulletChrome.cs
- AppearanceEditorPart.cs
- UInt32Converter.cs
- Light.cs
- Attributes.cs
- XPathException.cs
- NativeMethods.cs