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
- ListViewGroupConverter.cs
- storepermissionattribute.cs
- DataObjectCopyingEventArgs.cs
- HttpListenerPrefixCollection.cs
- COM2PictureConverter.cs
- ForEachAction.cs
- DataStorage.cs
- EditorZone.cs
- RedBlackList.cs
- TextUtf8RawTextWriter.cs
- Pkcs7Recipient.cs
- ArraySet.cs
- RectangleF.cs
- FacetChecker.cs
- TypedColumnHandler.cs
- TemplateControlCodeDomTreeGenerator.cs
- SqlDelegatedTransaction.cs
- Error.cs
- SoapSchemaExporter.cs
- ClientScriptManager.cs
- XmlWrappingReader.cs
- UrlPath.cs
- NativeMethods.cs
- IsolatedStorageFileStream.cs
- XPathNodePointer.cs
- Roles.cs
- LogFlushAsyncResult.cs
- TableFieldsEditor.cs
- SpecialTypeDataContract.cs
- ImageClickEventArgs.cs
- ReaderContextStackData.cs
- DocobjHost.cs
- FileUpload.cs
- XamlPointCollectionSerializer.cs
- ComboBoxItem.cs
- SqlExpander.cs
- PresentationTraceSources.cs
- HandlerFactoryWrapper.cs
- XmlBinaryReader.cs
- StopStoryboard.cs
- SystemIcmpV4Statistics.cs
- UnsafeNativeMethods.cs
- ProjectionCamera.cs
- LinearGradientBrush.cs
- ContourSegment.cs
- FilterUserControlBase.cs
- ColorKeyFrameCollection.cs
- IsolatedStorageFilePermission.cs
- StackBuilderSink.cs
- SecurityHelper.cs
- MultiView.cs
- Transform3D.cs
- FixedFindEngine.cs
- hresults.cs
- HttpCachePolicyWrapper.cs
- WindowsListView.cs
- ComponentGuaranteesAttribute.cs
- CompiledRegexRunnerFactory.cs
- MethodExpr.cs
- HttpHostedTransportConfiguration.cs
- HeaderUtility.cs
- QueryStringParameter.cs
- ConfigXmlComment.cs
- GcSettings.cs
- DetailsViewInsertEventArgs.cs
- FrameworkElement.cs
- SafeSecurityHandles.cs
- StyleCollection.cs
- ListViewEditEventArgs.cs
- TextRangeSerialization.cs
- SelectedDatesCollection.cs
- TypeLibConverter.cs
- QuaternionValueSerializer.cs
- RectangleGeometry.cs
- RegisteredArrayDeclaration.cs
- DiscoveryVersionConverter.cs
- XmlSerializer.cs
- XXXOnTypeBuilderInstantiation.cs
- EntityConnectionStringBuilderItem.cs
- DetailsViewRow.cs
- DefaultProfileManager.cs
- DynamicRendererThreadManager.cs
- MimeMultiPart.cs
- ExtendedProtectionPolicyElement.cs
- ServiceModelSecurityTokenTypes.cs
- PeerConnector.cs
- ReferenceEqualityComparer.cs
- HyperLink.cs
- WorkflowEventArgs.cs
- ReferenceList.cs
- XhtmlConformanceSection.cs
- GregorianCalendar.cs
- SettingsSavedEventArgs.cs
- HtmlTableRow.cs
- clipboard.cs
- XmlQueryTypeFactory.cs
- ChangeConflicts.cs
- VisualStyleInformation.cs
- FrameworkElement.cs
- CellRelation.cs