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
- CodeExpressionStatement.cs
- DurableInstanceContextProvider.cs
- COM2Enum.cs
- DocumentViewer.cs
- WebPartZoneCollection.cs
- ControlCollection.cs
- SystemWebSectionGroup.cs
- GridViewRowCollection.cs
- XMLSchema.cs
- MediaContextNotificationWindow.cs
- SelectingProviderEventArgs.cs
- GraphicsContainer.cs
- EnumBuilder.cs
- listitem.cs
- PolyBezierSegment.cs
- XMLSchema.cs
- SqlVisitor.cs
- AspCompat.cs
- TaskFileService.cs
- TableItemStyle.cs
- OptimizerPatterns.cs
- PageParserFilter.cs
- CaseStatementSlot.cs
- DtdParser.cs
- ConsumerConnectionPoint.cs
- DataControlPagerLinkButton.cs
- ListControl.cs
- BinaryObjectInfo.cs
- ExitEventArgs.cs
- ConditionalExpression.cs
- EditorZoneBase.cs
- AvtEvent.cs
- EntityDataSourceDataSelectionPanel.cs
- Image.cs
- AssemblyFilter.cs
- ProviderUtil.cs
- ImmutableDispatchRuntime.cs
- DrawTreeNodeEventArgs.cs
- XmlException.cs
- Base64Encoder.cs
- GridViewAutomationPeer.cs
- PopupEventArgs.cs
- SqlBooleanMismatchVisitor.cs
- TaiwanLunisolarCalendar.cs
- EntityDataSource.cs
- _Semaphore.cs
- ConstraintEnumerator.cs
- ImageAutomationPeer.cs
- SimpleLine.cs
- GridViewPageEventArgs.cs
- Typography.cs
- PropertyPushdownHelper.cs
- BulletChrome.cs
- PasswordRecoveryDesigner.cs
- WebPartCollection.cs
- BoundConstants.cs
- SoapParser.cs
- ControlAdapter.cs
- Adorner.cs
- Visual3D.cs
- IISUnsafeMethods.cs
- IpcClientManager.cs
- HttpCachePolicyBase.cs
- MsmqHostedTransportConfiguration.cs
- Rotation3DAnimationBase.cs
- BuildProviderUtils.cs
- HealthMonitoringSectionHelper.cs
- BeginStoryboard.cs
- NegotiateStream.cs
- HTMLTagNameToTypeMapper.cs
- Queue.cs
- SqlDependency.cs
- TablePattern.cs
- SequenceDesigner.xaml.cs
- PropertyRef.cs
- InheritanceRules.cs
- LongTypeConverter.cs
- SqlDataSourceCache.cs
- DataControlFieldCell.cs
- WorkflowServiceBuildProvider.cs
- StringKeyFrameCollection.cs
- safelink.cs
- Trace.cs
- TextRange.cs
- BaseDataList.cs
- IsolatedStorageFilePermission.cs
- NavigationService.cs
- XmlQueryType.cs
- UnsafeNativeMethods.cs
- EntityDataSourceValidationException.cs
- TypeDependencyAttribute.cs
- EditorZoneBase.cs
- HtmlElementEventArgs.cs
- DBPropSet.cs
- ItemCheckEvent.cs
- NotSupportedException.cs
- DrawingVisual.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- SupportsEventValidationAttribute.cs
- ValidatorCompatibilityHelper.cs