Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpStaticObjectsCollectionBase.cs
- FixedFindEngine.cs
- ReferencedType.cs
- DefaultPropertiesToSend.cs
- QilList.cs
- ObjectAssociationEndMapping.cs
- XmlnsCompatibleWithAttribute.cs
- IODescriptionAttribute.cs
- Type.cs
- ConfigurationSectionGroup.cs
- CopyAttributesAction.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SendKeys.cs
- WriteTimeStream.cs
- OdbcTransaction.cs
- InheritablePropertyChangeInfo.cs
- DesignerToolStripControlHost.cs
- DropSource.cs
- BitmapEffectDrawing.cs
- QilPatternFactory.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- MediaContextNotificationWindow.cs
- PackageFilter.cs
- TemplatePagerField.cs
- RelativeSource.cs
- SmtpNetworkElement.cs
- QueryableDataSourceHelper.cs
- DictionaryManager.cs
- SiteMapPath.cs
- TrustManager.cs
- ThrowOnMultipleAssignment.cs
- CuspData.cs
- CaseCqlBlock.cs
- KeyEventArgs.cs
- XmlDocumentSerializer.cs
- UnsafeNativeMethods.cs
- X509Certificate.cs
- QueryCacheEntry.cs
- EnumerableRowCollection.cs
- DesignerValidationSummaryAdapter.cs
- TreeNode.cs
- DeferredTextReference.cs
- PropertyFilterAttribute.cs
- SafeNativeMethods.cs
- RadialGradientBrush.cs
- SizeIndependentAnimationStorage.cs
- TypeUnloadedException.cs
- OdbcPermission.cs
- XmlWhitespace.cs
- CqlLexerHelpers.cs
- SymLanguageType.cs
- OutputScopeManager.cs
- DirectoryObjectSecurity.cs
- IdentityNotMappedException.cs
- EventListener.cs
- TextEmbeddedObject.cs
- DatatypeImplementation.cs
- LinkTarget.cs
- sqlstateclientmanager.cs
- Size.cs
- SystemThemeKey.cs
- ZipIOLocalFileBlock.cs
- NumericPagerField.cs
- ExtensionQuery.cs
- BindingCollection.cs
- DNS.cs
- MatrixKeyFrameCollection.cs
- ObjectStorage.cs
- NativeMethods.cs
- StandardCommands.cs
- ExtenderHelpers.cs
- PtsPage.cs
- PasswordTextNavigator.cs
- TableParagraph.cs
- Int32AnimationBase.cs
- ServiceInstallComponent.cs
- XmlNavigatorStack.cs
- HostSecurityManager.cs
- DropDownHolder.cs
- MailHeaderInfo.cs
- MatrixAnimationBase.cs
- TextParaClient.cs
- TemplateKeyConverter.cs
- CodeParameterDeclarationExpressionCollection.cs
- SettingsBindableAttribute.cs
- SizeAnimationBase.cs
- RowsCopiedEventArgs.cs
- TypeBuilder.cs
- MissingSatelliteAssemblyException.cs
- XmlDocument.cs
- FieldToken.cs
- SpeechRecognizer.cs
- XmlSchemaSequence.cs
- DataSourceCacheDurationConverter.cs
- Pair.cs
- ToolStripItemDesigner.cs
- FirewallWrapper.cs
- MeasureData.cs
- NodeLabelEditEvent.cs
- BoundField.cs