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
- SQLGuidStorage.cs
- ProtocolsConfiguration.cs
- CodeDelegateInvokeExpression.cs
- XPathDocumentIterator.cs
- XmlElementAttribute.cs
- ObjectTag.cs
- ProxyHelper.cs
- FixedLineResult.cs
- DocumentGridPage.cs
- NativeMethods.cs
- TextCollapsingProperties.cs
- UInt32.cs
- HijriCalendar.cs
- ClipboardProcessor.cs
- ServiceDurableInstance.cs
- PrinterUnitConvert.cs
- HtmlGenericControl.cs
- XPathParser.cs
- UIPermission.cs
- CaseStatement.cs
- MultipleViewProviderWrapper.cs
- MatrixCamera.cs
- EventLogTraceListener.cs
- Helpers.cs
- AvTrace.cs
- LabelLiteral.cs
- RijndaelManagedTransform.cs
- IndexedEnumerable.cs
- FixedPage.cs
- DataMemberFieldConverter.cs
- SafeViewOfFileHandle.cs
- RuleConditionDialog.cs
- Decimal.cs
- ChangePassword.cs
- StaticSiteMapProvider.cs
- StylusPointPropertyId.cs
- MaskedTextProvider.cs
- DataGridViewColumn.cs
- WmpBitmapEncoder.cs
- CodeDelegateCreateExpression.cs
- MatrixCamera.cs
- ConfigXmlReader.cs
- ControlUtil.cs
- BitmapDownload.cs
- Int32Converter.cs
- XmlSerializableWriter.cs
- DTCTransactionManager.cs
- FieldCollectionEditor.cs
- DataColumnCollection.cs
- CachedFontFamily.cs
- UrlMappingsSection.cs
- LazyTextWriterCreator.cs
- XmlElementCollection.cs
- ObjectResult.cs
- base64Transforms.cs
- StrokeFIndices.cs
- SingleTagSectionHandler.cs
- Rect.cs
- SmtpReplyReader.cs
- ProtocolsConfigurationHandler.cs
- AutomationEvent.cs
- ToolboxDataAttribute.cs
- IsolationInterop.cs
- PolicyManager.cs
- ViewBox.cs
- RefreshPropertiesAttribute.cs
- Grid.cs
- SocketElement.cs
- InkSerializer.cs
- AutoResetEvent.cs
- PerformanceCounterPermission.cs
- ColumnReorderedEventArgs.cs
- BitmapEffectGeneralTransform.cs
- DSACryptoServiceProvider.cs
- SoapCodeExporter.cs
- Row.cs
- StylusButtonEventArgs.cs
- SignatureToken.cs
- RuleProcessor.cs
- ImageSource.cs
- DbCommandTree.cs
- sqlmetadatafactory.cs
- OuterGlowBitmapEffect.cs
- X509Utils.cs
- XamlPathDataSerializer.cs
- CompileXomlTask.cs
- XmlTextAttribute.cs
- IPGlobalProperties.cs
- UriWriter.cs
- RowSpanVector.cs
- TableRow.cs
- Signature.cs
- AssociationTypeEmitter.cs
- EntityParameter.cs
- BuildProviderCollection.cs
- ReferenceList.cs
- ConfigXmlText.cs
- SourceFileBuildProvider.cs
- Point3DAnimationBase.cs
- QueryStringParameter.cs