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
- MediaTimeline.cs
- WindowsSysHeader.cs
- EntityDataSourceState.cs
- UnsafeMethods.cs
- ToolboxItemAttribute.cs
- TPLETWProvider.cs
- DoubleCollectionValueSerializer.cs
- ErrorEventArgs.cs
- ObjectConverter.cs
- CodeThrowExceptionStatement.cs
- NavigationProperty.cs
- DataColumn.cs
- FocusChangedEventArgs.cs
- CodeIdentifier.cs
- Attributes.cs
- DesignerForm.cs
- KnownTypesProvider.cs
- MarkedHighlightComponent.cs
- AutomationPropertyInfo.cs
- CodeCompileUnit.cs
- CompilationRelaxations.cs
- AdvancedBindingEditor.cs
- RelationshipEndCollection.cs
- WhitespaceSignificantCollectionAttribute.cs
- TextDecorationCollection.cs
- IChannel.cs
- BezierSegment.cs
- ToolStripActionList.cs
- WindowsListViewItemStartMenu.cs
- RestHandlerFactory.cs
- XsltInput.cs
- ClientRolePrincipal.cs
- MiniMapControl.xaml.cs
- FindProgressChangedEventArgs.cs
- MissingSatelliteAssemblyException.cs
- ChainedAsyncResult.cs
- OverrideMode.cs
- GuidTagList.cs
- PartManifestEntry.cs
- Line.cs
- UseAttributeSetsAction.cs
- IISUnsafeMethods.cs
- DragAssistanceManager.cs
- NetStream.cs
- DropDownList.cs
- SendKeys.cs
- DataGridColumnHeaderAutomationPeer.cs
- XomlCompilerParameters.cs
- ToggleButton.cs
- TextServicesDisplayAttribute.cs
- RectAnimation.cs
- BridgeDataReader.cs
- _FtpControlStream.cs
- ToolStripItemClickedEventArgs.cs
- BatchServiceHost.cs
- CursorConverter.cs
- Trace.cs
- TargetConverter.cs
- HttpException.cs
- Argument.cs
- ValueUtilsSmi.cs
- PageClientProxyGenerator.cs
- HostVisual.cs
- XmlSignificantWhitespace.cs
- RootBuilder.cs
- WindowsStartMenu.cs
- IItemContainerGenerator.cs
- Debug.cs
- SchemaDeclBase.cs
- RowToFieldTransformer.cs
- SessionStateUtil.cs
- ValueQuery.cs
- ReceiveActivityDesignerTheme.cs
- NamespaceList.cs
- GeneralTransform2DTo3D.cs
- DoubleConverter.cs
- SingleObjectCollection.cs
- SchemaImporterExtensionsSection.cs
- ThicknessAnimationUsingKeyFrames.cs
- path.cs
- Window.cs
- MutexSecurity.cs
- TypeUtil.cs
- UnknownWrapper.cs
- Cursor.cs
- ScrollChrome.cs
- UIElement.cs
- GridEntryCollection.cs
- CodeExpressionCollection.cs
- HScrollProperties.cs
- HttpApplicationFactory.cs
- KernelTypeValidation.cs
- MediaTimeline.cs
- ToolboxItemFilterAttribute.cs
- DisableDpiAwarenessAttribute.cs
- Imaging.cs
- HashJoinQueryOperatorEnumerator.cs
- TextViewBase.cs
- GenericAuthenticationEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs