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
- CharStorage.cs
- XmlSerializer.cs
- InputLanguageEventArgs.cs
- ClassData.cs
- HtmlInputControl.cs
- XmlTextWriter.cs
- Scene3D.cs
- ReaderWriterLock.cs
- TextModifier.cs
- TypefaceCollection.cs
- GregorianCalendarHelper.cs
- GradientSpreadMethodValidation.cs
- XmlParser.cs
- DataViewSetting.cs
- ServiceBuildProvider.cs
- XmlTypeAttribute.cs
- WebPartMenuStyle.cs
- XamlToRtfParser.cs
- CompilerParameters.cs
- ResourceExpression.cs
- DataGridViewColumnCollection.cs
- SchemaMapping.cs
- PolyQuadraticBezierSegment.cs
- DependencyPropertyKey.cs
- dtdvalidator.cs
- DbLambda.cs
- HttpApplication.cs
- ConditionalWeakTable.cs
- TabItemAutomationPeer.cs
- PackageRelationshipCollection.cs
- RSAPKCS1SignatureFormatter.cs
- ImageInfo.cs
- ErrorRuntimeConfig.cs
- UnitySerializationHolder.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- EditorZoneDesigner.cs
- ApplicationBuildProvider.cs
- ExternalCalls.cs
- SqlConnectionStringBuilder.cs
- ParameterCollection.cs
- ActivityExecutionWorkItem.cs
- InfoCardConstants.cs
- ClipboardData.cs
- SymmetricSecurityProtocol.cs
- FileLevelControlBuilderAttribute.cs
- ExpandSegmentCollection.cs
- LocalTransaction.cs
- DetailsViewPagerRow.cs
- SqlDataSourceConnectionPanel.cs
- XD.cs
- MetadataCache.cs
- EntityType.cs
- SystemIcmpV4Statistics.cs
- SHA256CryptoServiceProvider.cs
- VectorValueSerializer.cs
- SqlDataSourceView.cs
- SelectManyQueryOperator.cs
- RoutedPropertyChangedEventArgs.cs
- BitmapEffect.cs
- Cursor.cs
- ObservableCollectionDefaultValueFactory.cs
- UIElement.cs
- MessageHeaderException.cs
- GridViewCommandEventArgs.cs
- RunInstallerAttribute.cs
- FileBasedResourceGroveler.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ClientSideQueueItem.cs
- CapabilitiesRule.cs
- VoiceSynthesis.cs
- ActivatedMessageQueue.cs
- DodSequenceMerge.cs
- DbConnectionPoolIdentity.cs
- BuildProvider.cs
- AvTrace.cs
- ContractReference.cs
- PackageStore.cs
- ProfileManager.cs
- ConfigXmlReader.cs
- BindingListCollectionView.cs
- XmlSchemaGroupRef.cs
- DetailsViewDeleteEventArgs.cs
- SqlBuilder.cs
- Monitor.cs
- MarkupCompilePass2.cs
- DesignerWebPartChrome.cs
- FontFamilyValueSerializer.cs
- EmptyEnumerator.cs
- RegexBoyerMoore.cs
- SearchForVirtualItemEventArgs.cs
- FontNamesConverter.cs
- IMembershipProvider.cs
- UnsafeNativeMethods.cs
- EdmScalarPropertyAttribute.cs
- PolyLineSegmentFigureLogic.cs
- ToolStripControlHost.cs
- XPathParser.cs
- VScrollBar.cs
- FilterElement.cs
- SymbolType.cs