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
- safePerfProviderHandle.cs
- PropertyChangingEventArgs.cs
- MemberAssignment.cs
- BitmapEffectInput.cs
- PersonalizationState.cs
- UpdateDelegates.Generated.cs
- versioninfo.cs
- JsonWriter.cs
- PaintValueEventArgs.cs
- VarInfo.cs
- ValuePatternIdentifiers.cs
- PerfProviderCollection.cs
- _NTAuthentication.cs
- Byte.cs
- DependencyObject.cs
- QilTernary.cs
- Int16AnimationBase.cs
- NavigatorOutput.cs
- ComboBoxAutomationPeer.cs
- SafeRightsManagementHandle.cs
- BufferBuilder.cs
- AutomationPatternInfo.cs
- DefaultClaimSet.cs
- DurationConverter.cs
- WindowsComboBox.cs
- WebRequestModuleElementCollection.cs
- AdPostCacheSubstitution.cs
- MimeWriter.cs
- CLSCompliantAttribute.cs
- ReadOnlyTernaryTree.cs
- HtmlInputControl.cs
- SecurityDocument.cs
- DbDataReader.cs
- CreateUserWizardAutoFormat.cs
- Stylesheet.cs
- ErrorActivity.cs
- SerializationHelper.cs
- StorageScalarPropertyMapping.cs
- AsymmetricAlgorithm.cs
- UTF8Encoding.cs
- BitmapEffectGroup.cs
- DataControlField.cs
- Border.cs
- HttpHandlerActionCollection.cs
- WSMessageEncoding.cs
- FrameworkContentElement.cs
- SqlMetaData.cs
- FixUpCollection.cs
- StoryFragments.cs
- VisualProxy.cs
- TemplateControlParser.cs
- PackagePart.cs
- MD5CryptoServiceProvider.cs
- TransformFinalBlockRequest.cs
- UpDownBase.cs
- EffectiveValueEntry.cs
- Executor.cs
- AmbientLight.cs
- Error.cs
- ZipIOExtraField.cs
- WinEventHandler.cs
- ListViewAutomationPeer.cs
- NestPullup.cs
- EventLogEntry.cs
- PropertyEmitter.cs
- PriorityItem.cs
- RoleGroup.cs
- EDesignUtil.cs
- WebPartConnectionsConnectVerb.cs
- PeerDuplexChannel.cs
- ActiveXHelper.cs
- MarkupCompilePass2.cs
- TextDpi.cs
- ContractReference.cs
- XhtmlConformanceSection.cs
- ToolStripSplitStackLayout.cs
- MetabaseReader.cs
- DataGridRowHeader.cs
- XPathCompileException.cs
- BindingValueChangedEventArgs.cs
- SemanticValue.cs
- SoapObjectInfo.cs
- Themes.cs
- SoapFormatter.cs
- HttpCapabilitiesSectionHandler.cs
- Table.cs
- InstallerTypeAttribute.cs
- DefaultSection.cs
- StickyNoteAnnotations.cs
- DiscoveryClient.cs
- WindowsStatic.cs
- IIS7UserPrincipal.cs
- DrawingBrush.cs
- Point3DAnimation.cs
- SqlHelper.cs
- handlecollector.cs
- ScrollChrome.cs
- TemplateControlBuildProvider.cs
- CapacityStreamGeometryContext.cs
- DataKeyCollection.cs