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
- TemplateNameScope.cs
- NegotiationTokenAuthenticatorState.cs
- MobileUITypeEditor.cs
- SoapAttributeOverrides.cs
- GregorianCalendarHelper.cs
- OutputScope.cs
- CounterSampleCalculator.cs
- httpserverutility.cs
- OutputScope.cs
- SelectionList.cs
- HwndSourceKeyboardInputSite.cs
- DictionaryBase.cs
- sqlmetadatafactory.cs
- DataGridTable.cs
- ListViewGroup.cs
- DebugHandleTracker.cs
- CollectionConverter.cs
- HttpServerUtilityWrapper.cs
- ComponentSerializationService.cs
- CollectionViewGroupInternal.cs
- RowToParametersTransformer.cs
- ConfigXmlSignificantWhitespace.cs
- Point.cs
- CacheDependency.cs
- DocumentGridContextMenu.cs
- XmlObjectSerializerWriteContext.cs
- HelpKeywordAttribute.cs
- IDQuery.cs
- ZoneMembershipCondition.cs
- XamlStyleSerializer.cs
- ThreadInterruptedException.cs
- ControlBuilderAttribute.cs
- TypeForwardedFromAttribute.cs
- WebPartZone.cs
- CodeSnippetTypeMember.cs
- DoubleCollection.cs
- EndpointIdentity.cs
- UDPClient.cs
- SecurityStandardsManager.cs
- BufferedGraphicsContext.cs
- WmlValidatorAdapter.cs
- QilInvokeLateBound.cs
- ConcurrentStack.cs
- ToolStripRenderEventArgs.cs
- DataGridView.cs
- TTSVoice.cs
- HttpApplication.cs
- UserControlFileEditor.cs
- QilCloneVisitor.cs
- MiniParameterInfo.cs
- PropertyTabChangedEvent.cs
- ScrollChrome.cs
- X509Certificate2Collection.cs
- TextBoxView.cs
- SessionPageStateSection.cs
- MouseDevice.cs
- Visitor.cs
- BidPrivateBase.cs
- AbandonedMutexException.cs
- StorageRoot.cs
- SolidColorBrush.cs
- PathSegment.cs
- CompilerHelpers.cs
- UnionExpr.cs
- SqlXml.cs
- Vector3DCollection.cs
- CalendarAutoFormatDialog.cs
- TimelineGroup.cs
- Int32Collection.cs
- CodeSnippetTypeMember.cs
- RankException.cs
- XslAstAnalyzer.cs
- AsyncStreamReader.cs
- SortableBindingList.cs
- TextTreeUndo.cs
- ScriptingSectionGroup.cs
- SoapAttributeAttribute.cs
- NativeObjectSecurity.cs
- XmlAttributeCache.cs
- CriticalExceptions.cs
- BuildDependencySet.cs
- PreloadedPackages.cs
- ConfigurationValidatorAttribute.cs
- SpeechUI.cs
- ClientRuntimeConfig.cs
- dataobject.cs
- PrivateFontCollection.cs
- CodeGroup.cs
- DecodeHelper.cs
- ToolStripPanelSelectionBehavior.cs
- CategoryAttribute.cs
- DataTablePropertyDescriptor.cs
- BinHexEncoder.cs
- SEHException.cs
- ResourceDescriptionAttribute.cs
- JumpPath.cs
- DirectoryInfo.cs
- _CookieModule.cs
- PasswordRecoveryDesigner.cs
- Material.cs