Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // // ==--== /*============================================================ ** ** 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
- CodeTypeParameter.cs
- FlagsAttribute.cs
- linebase.cs
- ExtensionSimplifierMarkupObject.cs
- MemoryMappedFileSecurity.cs
- StandardToolWindows.cs
- HwndMouseInputProvider.cs
- OdbcError.cs
- GridViewDeletedEventArgs.cs
- ElapsedEventArgs.cs
- DataTableExtensions.cs
- Visual3DCollection.cs
- ToolStripHighContrastRenderer.cs
- AuthenticationException.cs
- ArraySet.cs
- StaticSiteMapProvider.cs
- UserControl.cs
- TransformGroup.cs
- SetterBaseCollection.cs
- GB18030Encoding.cs
- NumericUpDownAccelerationCollection.cs
- UriTemplateTableMatchCandidate.cs
- DataObject.cs
- WebServiceClientProxyGenerator.cs
- ThemeableAttribute.cs
- _UriTypeConverter.cs
- Error.cs
- Model3DCollection.cs
- ScriptingJsonSerializationSection.cs
- SqlRowUpdatingEvent.cs
- ResourceProviderFactory.cs
- WinEventQueueItem.cs
- MruCache.cs
- SystemWebSectionGroup.cs
- IBuiltInEvidence.cs
- PeerNameRegistration.cs
- KeySpline.cs
- StateDesigner.CommentLayoutGlyph.cs
- URLAttribute.cs
- XPathCompileException.cs
- ObjectSecurityT.cs
- XmlNotation.cs
- XmlnsDictionary.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- DesignerLoader.cs
- RuntimeHelpers.cs
- TraceContext.cs
- SerialReceived.cs
- TableCellCollection.cs
- PipelineDeploymentState.cs
- AsyncParams.cs
- MultiPageTextView.cs
- OdbcException.cs
- PaperSource.cs
- ApplicationServicesHostFactory.cs
- ImageInfo.cs
- xdrvalidator.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ProtocolsConfigurationHandler.cs
- CryptoApi.cs
- PinnedBufferMemoryStream.cs
- activationcontext.cs
- RestHandlerFactory.cs
- ValidatorCollection.cs
- GridView.cs
- Property.cs
- ScriptResourceAttribute.cs
- DomainUpDown.cs
- Transform.cs
- SerializationInfoEnumerator.cs
- PtsPage.cs
- VariableQuery.cs
- HttpServerVarsCollection.cs
- URL.cs
- Literal.cs
- TypeDescriptorFilterService.cs
- ClientScriptManagerWrapper.cs
- InstanceStore.cs
- XmlSchemaAnyAttribute.cs
- DocumentViewer.cs
- TableItemProviderWrapper.cs
- ConnectionPoolManager.cs
- SrgsElement.cs
- SqlClientWrapperSmiStream.cs
- SmiSettersStream.cs
- SpeechSynthesizer.cs
- EmptyControlCollection.cs
- DataGridViewBand.cs
- RectangleF.cs
- ObjectPersistData.cs
- ButtonColumn.cs
- Grid.cs
- ParagraphVisual.cs
- ZipFileInfoCollection.cs
- XamlTemplateSerializer.cs
- SafeHandles.cs
- DnsPermission.cs
- Double.cs
- WebPartVerb.cs
- MemberInfoSerializationHolder.cs