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
- _ConnectStream.cs
- CreateUserWizardStep.cs
- VariableQuery.cs
- XamlUtilities.cs
- AnnotationComponentChooser.cs
- Soap12ServerProtocol.cs
- _FixedSizeReader.cs
- Translator.cs
- FieldAccessException.cs
- MSG.cs
- CodePageEncoding.cs
- StylusEditingBehavior.cs
- SerializationSectionGroup.cs
- WorkflowApplicationAbortedException.cs
- UserPreferenceChangedEventArgs.cs
- mda.cs
- WindowsScroll.cs
- NameValueSectionHandler.cs
- EventToken.cs
- XmlSchemaSimpleContent.cs
- invalidudtexception.cs
- UserControlBuildProvider.cs
- RIPEMD160.cs
- LocationChangedEventArgs.cs
- MethodExpr.cs
- CompareValidator.cs
- XmlAttribute.cs
- SqlCacheDependency.cs
- VectorCollection.cs
- Stack.cs
- Effect.cs
- TextTrailingWordEllipsis.cs
- ParameterBuilder.cs
- SizeChangedInfo.cs
- SortQuery.cs
- WsatTransactionInfo.cs
- PersistChildrenAttribute.cs
- DetailsViewModeEventArgs.cs
- PrePostDescendentsWalker.cs
- ProfileGroupSettings.cs
- StorageBasedPackageProperties.cs
- ProcessThread.cs
- RequestDescription.cs
- RoleService.cs
- ChunkedMemoryStream.cs
- ObjectTag.cs
- EventKeyword.cs
- BinHexEncoding.cs
- ConfigXmlWhitespace.cs
- ContentElement.cs
- TakeOrSkipWhileQueryOperator.cs
- Publisher.cs
- ZipIOCentralDirectoryFileHeader.cs
- ParameterCollectionEditorForm.cs
- ConfigsHelper.cs
- Int16AnimationBase.cs
- Tablet.cs
- ReferencedAssembly.cs
- PrivilegedConfigurationManager.cs
- ProcessModule.cs
- SqlCrossApplyToCrossJoin.cs
- SchemaImporter.cs
- InfiniteTimeSpanConverter.cs
- SkipStoryboardToFill.cs
- KeyValueConfigurationCollection.cs
- FixedSOMSemanticBox.cs
- RewritingProcessor.cs
- CallbackHandler.cs
- Exceptions.cs
- SspiSafeHandles.cs
- Nullable.cs
- PersianCalendar.cs
- XmlRawWriter.cs
- XmlSchemaAttribute.cs
- GridViewColumn.cs
- CompositionAdorner.cs
- AncillaryOps.cs
- SingleObjectCollection.cs
- PreApplicationStartMethodAttribute.cs
- MdImport.cs
- SaveFileDialog.cs
- WindowsStatusBar.cs
- TypeFieldSchema.cs
- XsdBuildProvider.cs
- EmissiveMaterial.cs
- Command.cs
- MessageUtil.cs
- TabControl.cs
- ParameterCollection.cs
- RecognizedAudio.cs
- ExtensionSimplifierMarkupObject.cs
- PolyBezierSegment.cs
- Utils.cs
- DataGridRowHeaderAutomationPeer.cs
- ListBoxChrome.cs
- XmlSignatureManifest.cs
- MsmqReceiveParameters.cs
- SecureConversationServiceElement.cs
- WebServiceMethodData.cs
- SerializationObjectManager.cs