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
- HttpApplication.cs
- InkCanvasInnerCanvas.cs
- ValidationSummary.cs
- WindowsAuthenticationEventArgs.cs
- QuotedPrintableStream.cs
- WinInet.cs
- DataException.cs
- AuthenticationModuleElement.cs
- arclist.cs
- XhtmlBasicControlAdapter.cs
- PropertyValueChangedEvent.cs
- ChangePassword.cs
- PolyLineSegmentFigureLogic.cs
- BindingListCollectionView.cs
- UnsafeNativeMethods.cs
- ResolveMatchesMessage11.cs
- MD5.cs
- ZipIORawDataFileBlock.cs
- RectAnimationBase.cs
- GridViewUpdateEventArgs.cs
- XsltException.cs
- ConfigurationValidatorAttribute.cs
- KeyedCollection.cs
- AnnotationAdorner.cs
- CLSCompliantAttribute.cs
- _UncName.cs
- DataGridColumnFloatingHeader.cs
- TimeIntervalCollection.cs
- Variable.cs
- ComponentRenameEvent.cs
- SqlDataReader.cs
- WebPartVerb.cs
- InputEventArgs.cs
- CachedPathData.cs
- ScriptManagerProxy.cs
- DataGridViewRow.cs
- PlatformCulture.cs
- EventLogTraceListener.cs
- DrawingServices.cs
- System.Data_BID.cs
- ListViewItemSelectionChangedEvent.cs
- WebSysDescriptionAttribute.cs
- RectangleF.cs
- WebPartMenu.cs
- HttpCacheParams.cs
- XsdValidatingReader.cs
- MultipleViewPatternIdentifiers.cs
- Oci.cs
- IsolatedStorageFile.cs
- WebMessageEncodingBindingElement.cs
- SystemParameters.cs
- FileUpload.cs
- MarkupExtensionSerializer.cs
- FileLevelControlBuilderAttribute.cs
- PropertyIDSet.cs
- OAVariantLib.cs
- Viewport3DAutomationPeer.cs
- ModuleConfigurationInfo.cs
- DesignerVerb.cs
- CompilerResults.cs
- WMICapabilities.cs
- DocumentGridPage.cs
- DrawingGroupDrawingContext.cs
- RtfNavigator.cs
- PnrpPeerResolverElement.cs
- DocumentSignatureManager.cs
- FloaterBaseParagraph.cs
- TextTreeDeleteContentUndoUnit.cs
- TransformedBitmap.cs
- HtmlInputFile.cs
- HMACSHA512.cs
- SspiSafeHandles.cs
- HttpResponseHeader.cs
- SqlRowUpdatingEvent.cs
- PasswordPropertyTextAttribute.cs
- XmlILModule.cs
- Profiler.cs
- CheckBoxRenderer.cs
- cryptoapiTransform.cs
- SqlTypesSchemaImporter.cs
- BindingRestrictions.cs
- DataExchangeServiceBinder.cs
- Size3DValueSerializer.cs
- ContextQuery.cs
- CategoryEditor.cs
- OutOfProcStateClientManager.cs
- CodeAttributeArgument.cs
- Latin1Encoding.cs
- WindowsStartMenu.cs
- PrimitiveSchema.cs
- Emitter.cs
- PipelineModuleStepContainer.cs
- LinqDataSourceHelper.cs
- AppDomainResourcePerfCounters.cs
- SmiEventStream.cs
- PropertyChangingEventArgs.cs
- HTMLTextWriter.cs
- RowBinding.cs
- XmlNamespaceDeclarationsAttribute.cs
- ipaddressinformationcollection.cs