Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DrawItemEvent.cs
- HtmlHead.cs
- Effect.cs
- AtomMaterializer.cs
- ColorContext.cs
- XmlWriterDelegator.cs
- Application.cs
- TreeSet.cs
- WindowsBrush.cs
- TdsParserSessionPool.cs
- Schedule.cs
- Nodes.cs
- InputScopeAttribute.cs
- ResourceDescriptionAttribute.cs
- IntegerFacetDescriptionElement.cs
- ForceCopyBuildProvider.cs
- RequestTimeoutManager.cs
- SizeConverter.cs
- ProtectedConfigurationSection.cs
- TableParagraph.cs
- MachineKeyConverter.cs
- DynamicRenderer.cs
- IProvider.cs
- ResXResourceWriter.cs
- ImageAnimator.cs
- DynamicDataResources.Designer.cs
- TemplateParser.cs
- NominalTypeEliminator.cs
- CryptoConfig.cs
- ReflectPropertyDescriptor.cs
- RuntimeConfig.cs
- ThousandthOfEmRealPoints.cs
- StylusPointPropertyId.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ClientSettingsProvider.cs
- diagnosticsswitches.cs
- OperationAbortedException.cs
- EncodingFallbackAwareXmlTextWriter.cs
- Int32AnimationBase.cs
- PanelStyle.cs
- FlowLayout.cs
- DefaultValueAttribute.cs
- SizeConverter.cs
- DispatcherExceptionFilterEventArgs.cs
- OdbcConnectionPoolProviderInfo.cs
- PreviewPrintController.cs
- WindowsAuthenticationModule.cs
- SectionRecord.cs
- ReachDocumentPageSerializerAsync.cs
- InputManager.cs
- PeerHopCountAttribute.cs
- _SSPISessionCache.cs
- HtmlEmptyTagControlBuilder.cs
- _IPv4Address.cs
- DocumentEventArgs.cs
- PerformanceCounter.cs
- TimeSpanSecondsConverter.cs
- WindowsRichEditRange.cs
- FatalException.cs
- LoginCancelEventArgs.cs
- LocalBuilder.cs
- AttachedPropertyMethodSelector.cs
- FormatSelectingMessageInspector.cs
- UniqueIdentifierService.cs
- MenuStrip.cs
- EnumConverter.cs
- FontDriver.cs
- CompositeKey.cs
- StackOverflowException.cs
- FontWeight.cs
- RefreshPropertiesAttribute.cs
- ConfigPathUtility.cs
- CommandField.cs
- TypedTableBase.cs
- CheckBoxField.cs
- OutOfProcStateClientManager.cs
- SafeReadContext.cs
- VolatileEnlistmentState.cs
- File.cs
- XamlToRtfWriter.cs
- WebPartEditVerb.cs
- DesignerVerb.cs
- DataControlReference.cs
- SelectionProcessor.cs
- EditingMode.cs
- ComponentDispatcher.cs
- BitmapFrameEncode.cs
- OneOfScalarConst.cs
- SystemNetHelpers.cs
- PackageDigitalSignature.cs
- Tokenizer.cs
- MD5.cs
- KeyboardNavigation.cs
- FormatterServices.cs
- EventsTab.cs
- SymbolMethod.cs
- handlecollector.cs
- TableLayoutPanel.cs
- BlockUIContainer.cs
- HttpResponseHeader.cs