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
- SqlDataSourceStatusEventArgs.cs
- Positioning.cs
- EntityDataSourceView.cs
- RuleEngine.cs
- SystemIPInterfaceStatistics.cs
- CorrelationTokenInvalidatedHandler.cs
- PaintValueEventArgs.cs
- NavigationProperty.cs
- MasterPage.cs
- AvTraceFormat.cs
- ReflectionTypeLoadException.cs
- DebugView.cs
- ColorContext.cs
- KeyValueConfigurationCollection.cs
- TypeReference.cs
- PauseStoryboard.cs
- SafeCloseHandleCritical.cs
- Identity.cs
- DataErrorValidationRule.cs
- IgnorePropertiesAttribute.cs
- ImageConverter.cs
- ProgressBarHighlightConverter.cs
- CommandLibraryHelper.cs
- XdrBuilder.cs
- FixedPosition.cs
- ActiveXContainer.cs
- CodeSnippetStatement.cs
- FileSecurity.cs
- AstTree.cs
- ImageMap.cs
- XmlSchemaGroup.cs
- TagMapInfo.cs
- UnsafeNativeMethods.cs
- ExpandCollapseProviderWrapper.cs
- FileSystemInfo.cs
- BaseTemplateCodeDomTreeGenerator.cs
- AnalyzedTree.cs
- HtmlWindow.cs
- CharEnumerator.cs
- ReachIDocumentPaginatorSerializer.cs
- Utils.cs
- OpenTypeLayout.cs
- DebugHandleTracker.cs
- CustomTypeDescriptor.cs
- HttpValueCollection.cs
- ChtmlCalendarAdapter.cs
- oledbmetadatacollectionnames.cs
- FileSecurity.cs
- MergeFailedEvent.cs
- EditorPartDesigner.cs
- ProxyGenerationError.cs
- HtmlTableRowCollection.cs
- RemotingSurrogateSelector.cs
- CachedFontFamily.cs
- codemethodreferenceexpression.cs
- NetCodeGroup.cs
- LabelDesigner.cs
- WindowsComboBox.cs
- TogglePattern.cs
- GeneralTransformGroup.cs
- AuthorizationRuleCollection.cs
- TypeListConverter.cs
- SiteMap.cs
- COM2FontConverter.cs
- DataRelation.cs
- XmlNavigatorStack.cs
- ComponentCollection.cs
- FileLogRecordStream.cs
- LinqDataSourceInsertEventArgs.cs
- DesignerImageAdapter.cs
- InkCanvasFeedbackAdorner.cs
- DesignerSerializationVisibilityAttribute.cs
- EnumerableRowCollection.cs
- CompensationDesigner.cs
- DisposableCollectionWrapper.cs
- TouchFrameEventArgs.cs
- SimpleModelProvider.cs
- XmlSchemaCompilationSettings.cs
- QilReference.cs
- RestClientProxyHandler.cs
- LayoutSettings.cs
- SecondaryIndex.cs
- DataServices.cs
- EnvelopedPkcs7.cs
- CertificateManager.cs
- StylusSystemGestureEventArgs.cs
- ListViewEditEventArgs.cs
- QueryCreatedEventArgs.cs
- AdjustableArrowCap.cs
- DetailsViewPageEventArgs.cs
- SignatureToken.cs
- __Filters.cs
- DataSetSchema.cs
- AssemblyUtil.cs
- AnnotationComponentChooser.cs
- MissingMemberException.cs
- Panel.cs
- ColumnResult.cs
- UrlMappingsSection.cs
- Descriptor.cs