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
- InstanceDescriptor.cs
- SoapEnumAttribute.cs
- XmlSerializableWriter.cs
- ISAPIWorkerRequest.cs
- DropShadowBitmapEffect.cs
- SeverityFilter.cs
- TextHidden.cs
- BinaryParser.cs
- ActivityScheduledRecord.cs
- DataGridItemCollection.cs
- ResetableIterator.cs
- EntityDataSourceSelectedEventArgs.cs
- PrintPageEvent.cs
- HtmlDocument.cs
- ValidationPropertyAttribute.cs
- JavaScriptString.cs
- ConfigXmlDocument.cs
- MultiAsyncResult.cs
- RootBrowserWindowProxy.cs
- BaseParser.cs
- TypefaceMap.cs
- FormsAuthenticationEventArgs.cs
- SQLDateTime.cs
- ProviderCommandInfoUtils.cs
- Profiler.cs
- XmlDataLoader.cs
- SweepDirectionValidation.cs
- XmlSchemaSimpleContentExtension.cs
- _Events.cs
- EncodingDataItem.cs
- VSWCFServiceContractGenerator.cs
- XmlMemberMapping.cs
- TextPenaltyModule.cs
- Clock.cs
- DataGridViewComboBoxColumn.cs
- BrushMappingModeValidation.cs
- CompilationRelaxations.cs
- CacheDependency.cs
- UInt32Storage.cs
- Base64Stream.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Soap12ProtocolReflector.cs
- MdiWindowListItemConverter.cs
- PagePropertiesChangingEventArgs.cs
- QueryOutputWriter.cs
- ExpandedWrapper.cs
- DrawToolTipEventArgs.cs
- FilteredDataSetHelper.cs
- WindowsAltTab.cs
- ApplicationSecurityInfo.cs
- ManipulationLogic.cs
- Attributes.cs
- DataListDesigner.cs
- GridViewCellAutomationPeer.cs
- DefaultProxySection.cs
- Parser.cs
- IdentityReference.cs
- UnaryNode.cs
- WorkflowFileItem.cs
- SafeEventLogReadHandle.cs
- ACE.cs
- XPathNodeList.cs
- SweepDirectionValidation.cs
- XamlClipboardData.cs
- BuildProviderUtils.cs
- LongValidatorAttribute.cs
- WorkflowInstanceProvider.cs
- DataSourceControlBuilder.cs
- LambdaExpression.cs
- WizardStepBase.cs
- IisTraceWebEventProvider.cs
- XsdBuildProvider.cs
- EmptyStringExpandableObjectConverter.cs
- DiscoveryDocument.cs
- TextTreeTextElementNode.cs
- VectorCollection.cs
- DocumentOrderQuery.cs
- ExtenderControl.cs
- HitTestWithPointDrawingContextWalker.cs
- TextUtf8RawTextWriter.cs
- EventProvider.cs
- EntityDataSourceContextDisposingEventArgs.cs
- StringUtil.cs
- DataKey.cs
- BamlRecords.cs
- ClientSettingsStore.cs
- EmptyQuery.cs
- SourceCollection.cs
- SiteMembershipCondition.cs
- Pen.cs
- BuildProvider.cs
- HwndSourceParameters.cs
- CodeIndexerExpression.cs
- DataMember.cs
- CodeLabeledStatement.cs
- RandomNumberGenerator.cs
- ViewStateException.cs
- WorkflowRuntimeService.cs
- PerfService.cs
- ForeignKeyConstraint.cs