Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / Emit / Label.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChangeConflicts.cs
- WindowsFormsHelpers.cs
- Shape.cs
- EventListenerClientSide.cs
- TileModeValidation.cs
- TreeNodeStyleCollection.cs
- SizeConverter.cs
- GridViewDeleteEventArgs.cs
- IndexerNameAttribute.cs
- Boolean.cs
- CompositeScriptReferenceEventArgs.cs
- KeyedHashAlgorithm.cs
- LogicalTreeHelper.cs
- SamlDelegatingWriter.cs
- BulletedListEventArgs.cs
- SQLChars.cs
- MarshalByValueComponent.cs
- ResourceProviderFactory.cs
- TemplateAction.cs
- compensatingcollection.cs
- Property.cs
- ServiceModelEnumValidator.cs
- TargetParameterCountException.cs
- PrePostDescendentsWalker.cs
- ClickablePoint.cs
- Converter.cs
- FontFamily.cs
- PixelFormats.cs
- DataGridCellAutomationPeer.cs
- sqlser.cs
- SafeNativeMethods.cs
- TimersDescriptionAttribute.cs
- XmlComplianceUtil.cs
- KeyValueInternalCollection.cs
- TextEncodedRawTextWriter.cs
- TypeProvider.cs
- ScriptMethodAttribute.cs
- BinaryExpression.cs
- Utils.cs
- PointHitTestResult.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlCodeExporter.cs
- DynamicRenderer.cs
- SqlMultiplexer.cs
- BamlVersionHeader.cs
- InteropAutomationProvider.cs
- LogicalExpressionTypeConverter.cs
- SynchronizationLockException.cs
- WebControlAdapter.cs
- GeometryHitTestResult.cs
- ReadOnlyKeyedCollection.cs
- AspNetHostingPermission.cs
- ListBox.cs
- VectorAnimationUsingKeyFrames.cs
- EffectiveValueEntry.cs
- SQLInt32Storage.cs
- MediaPlayerState.cs
- AuthenticationSchemesHelper.cs
- KeyEventArgs.cs
- PageParserFilter.cs
- SecurityCriticalDataForSet.cs
- WebControlAdapter.cs
- DataGridParentRows.cs
- IisTraceListener.cs
- VectorKeyFrameCollection.cs
- AuthenticationModulesSection.cs
- XamlGridLengthSerializer.cs
- ListViewItemSelectionChangedEvent.cs
- CreateUserWizardDesigner.cs
- StateBag.cs
- ColorPalette.cs
- XmlAttributeCache.cs
- ResourceManagerWrapper.cs
- InheritedPropertyDescriptor.cs
- DispatcherFrame.cs
- TextAdaptor.cs
- FixedSOMLineRanges.cs
- SqlConnectionFactory.cs
- RequestCachingSection.cs
- BStrWrapper.cs
- WhileDesigner.cs
- FontDialog.cs
- BinarySecretKeyIdentifierClause.cs
- Renderer.cs
- ItemsPresenter.cs
- SpeakProgressEventArgs.cs
- Transaction.cs
- TimeoutValidationAttribute.cs
- ClientBuildManager.cs
- ColumnReorderedEventArgs.cs
- MimeTypePropertyAttribute.cs
- BoolExpressionVisitors.cs
- BitmapImage.cs
- FrameworkPropertyMetadata.cs
- DataGridViewCell.cs
- SchemaType.cs
- ByteAnimationUsingKeyFrames.cs
- DataServiceHost.cs
- GeneralTransformGroup.cs
- CodeTryCatchFinallyStatement.cs