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
- MenuBase.cs
- CodeCatchClauseCollection.cs
- StaticExtensionConverter.cs
- DataGridViewColumn.cs
- TraceHandler.cs
- DiscoveryService.cs
- MetafileHeaderWmf.cs
- GridSplitterAutomationPeer.cs
- MsmqQueue.cs
- WindowsComboBox.cs
- BoolExpression.cs
- Positioning.cs
- EnumerableCollectionView.cs
- IntPtr.cs
- CodeDirectionExpression.cs
- DesignerDataRelationship.cs
- DateTimeSerializationSection.cs
- XmlDsigSep2000.cs
- ToolStripPanelRenderEventArgs.cs
- DataPagerField.cs
- PageTheme.cs
- cookieexception.cs
- LogAppendAsyncResult.cs
- _ListenerAsyncResult.cs
- DesignerCategoryAttribute.cs
- ViewBase.cs
- Addressing.cs
- TriggerCollection.cs
- TextOutput.cs
- SoapCommonClasses.cs
- ReverseQueryOperator.cs
- ItemPager.cs
- BamlLocalizableResource.cs
- DataSetSchema.cs
- DebugHandleTracker.cs
- AppDomainProtocolHandler.cs
- BamlLocalizer.cs
- SqlDataAdapter.cs
- ContractComponent.cs
- XmlSortKey.cs
- RadioButtonFlatAdapter.cs
- WebBrowsableAttribute.cs
- StructuralComparisons.cs
- DataKey.cs
- XmlSiteMapProvider.cs
- Vars.cs
- SkipQueryOptionExpression.cs
- HyperLinkField.cs
- OperandQuery.cs
- RangeBaseAutomationPeer.cs
- SecurityPermission.cs
- FixedSOMLineCollection.cs
- ArrayHelper.cs
- ChtmlPageAdapter.cs
- PTProvider.cs
- BCryptSafeHandles.cs
- Int32CollectionValueSerializer.cs
- OverrideMode.cs
- PriorityChain.cs
- OleDbReferenceCollection.cs
- WindowsMenu.cs
- ScriptModule.cs
- PageAsyncTask.cs
- InvalidPrinterException.cs
- SerialStream.cs
- PropertyOrder.cs
- PtsHost.cs
- DecimalStorage.cs
- TypeDescriptionProvider.cs
- SspiNegotiationTokenProviderState.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ProcessDesigner.cs
- invalidudtexception.cs
- WindowsNonControl.cs
- SkipStoryboardToFill.cs
- Directory.cs
- SectionXmlInfo.cs
- CommandBinding.cs
- smtpconnection.cs
- TreePrinter.cs
- RadioButton.cs
- AnyReturnReader.cs
- ArraySubsetEnumerator.cs
- NamedElement.cs
- _FtpDataStream.cs
- ReaderWriterLock.cs
- ToolboxComponentsCreatingEventArgs.cs
- ChangeDirector.cs
- ReceiveErrorHandling.cs
- CompositeDataBoundControl.cs
- ConfigXmlCDataSection.cs
- TextServicesProperty.cs
- SettingsSection.cs
- Timer.cs
- DateTimePicker.cs
- SmtpAuthenticationManager.cs
- XamlSerializationHelper.cs
- WriteLineDesigner.xaml.cs
- PrefixQName.cs