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
- ConfigurationElement.cs
- DebuggerAttributes.cs
- Axis.cs
- NavigatorInput.cs
- DiscoveryDocument.cs
- AspCompat.cs
- DesignerPainter.cs
- WebPartCollection.cs
- ImageConverter.cs
- XmlSerializerSection.cs
- DataTemplateKey.cs
- NameValuePair.cs
- MenuAdapter.cs
- Array.cs
- ReadOnlyDictionary.cs
- TimeSpanOrInfiniteValidator.cs
- LowerCaseStringConverter.cs
- _NegoState.cs
- IImplicitResourceProvider.cs
- QuinticEase.cs
- DataBoundControlHelper.cs
- tabpagecollectioneditor.cs
- Memoizer.cs
- CompilerGeneratedAttribute.cs
- PageSetupDialog.cs
- ValueExpressions.cs
- ScrollBar.cs
- XmlSerializationWriter.cs
- Roles.cs
- IndexingContentUnit.cs
- Pts.cs
- _BufferOffsetSize.cs
- ApplicationException.cs
- CodeSnippetStatement.cs
- CmsUtils.cs
- EllipseGeometry.cs
- TraceContextRecord.cs
- LocalizedNameDescriptionPair.cs
- CatalogZoneDesigner.cs
- ReflectTypeDescriptionProvider.cs
- DependencyObjectType.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ImageListDesigner.cs
- GetPageCompletedEventArgs.cs
- DataStreamFromComStream.cs
- AnonymousIdentificationSection.cs
- WebPartMovingEventArgs.cs
- DeleteStoreRequest.cs
- PeerToPeerException.cs
- AddressUtility.cs
- OpenTypeLayout.cs
- SingleTagSectionHandler.cs
- DataGridState.cs
- DrawingDrawingContext.cs
- GetPageNumberCompletedEventArgs.cs
- DeclarativeCatalogPart.cs
- CounterSample.cs
- Win32PrintDialog.cs
- AddressingVersion.cs
- cryptoapiTransform.cs
- SerializableAuthorizationContext.cs
- PropertiesTab.cs
- LogExtentCollection.cs
- GregorianCalendar.cs
- XmlnsDefinitionAttribute.cs
- CodeSnippetStatement.cs
- InfiniteTimeSpanConverter.cs
- XmlHierarchicalDataSourceView.cs
- DataSourceConverter.cs
- ParallelTimeline.cs
- CodeGeneratorOptions.cs
- GestureRecognitionResult.cs
- Vector3DKeyFrameCollection.cs
- BitmapEffectInput.cs
- Span.cs
- EdmItemCollection.OcAssemblyCache.cs
- ForeignConstraint.cs
- PipelineModuleStepContainer.cs
- WCFServiceClientProxyGenerator.cs
- SessionStateModule.cs
- SmtpReplyReader.cs
- ScrollData.cs
- CursorConverter.cs
- StatusBarItem.cs
- TimeIntervalCollection.cs
- AsyncPostBackTrigger.cs
- OletxResourceManager.cs
- MouseButton.cs
- Rect3D.cs
- TableProviderWrapper.cs
- AssociationSetMetadata.cs
- DoubleAnimationUsingKeyFrames.cs
- FilterableAttribute.cs
- GeneralTransform.cs
- WorkflowMarkupSerializer.cs
- TransactionScope.cs
- BulletedListEventArgs.cs
- SizeConverter.cs
- hresults.cs
- BitmapImage.cs