Code:
/ DotNET / DotNET / 8.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
- PersistChildrenAttribute.cs
- ModelTreeManager.cs
- ConstraintCollection.cs
- XsltException.cs
- ArrangedElementCollection.cs
- ImageBrush.cs
- GenericsInstances.cs
- SmiXetterAccessMap.cs
- XmlNamespaceMapping.cs
- GetWinFXPath.cs
- DataGridViewCellLinkedList.cs
- DrawListViewItemEventArgs.cs
- FlagsAttribute.cs
- DataGridTextBoxColumn.cs
- Int16KeyFrameCollection.cs
- AssemblyGen.cs
- TypedTableHandler.cs
- WSFederationHttpSecurityMode.cs
- NominalTypeEliminator.cs
- _ChunkParse.cs
- SrgsRule.cs
- OpCellTreeNode.cs
- BlurEffect.cs
- HttpWrapper.cs
- GridViewUpdatedEventArgs.cs
- GeometryValueSerializer.cs
- SplitterCancelEvent.cs
- translator.cs
- AllMembershipCondition.cs
- FontFamily.cs
- LicenseContext.cs
- BehaviorService.cs
- Types.cs
- ExpandSegment.cs
- PerformanceCounter.cs
- HashHelper.cs
- typedescriptorpermission.cs
- ParameterCollection.cs
- DataServiceBuildProvider.cs
- XmlCountingReader.cs
- WebReference.cs
- SessionEndingEventArgs.cs
- ArrayConverter.cs
- ReadOnlyAttribute.cs
- Encoder.cs
- XmlSchemaAnnotated.cs
- StateMachineExecutionState.cs
- IFlowDocumentViewer.cs
- DataBindingExpressionBuilder.cs
- BlockingCollection.cs
- Adorner.cs
- InvokeMemberBinder.cs
- HashAlgorithm.cs
- DragAssistanceManager.cs
- FieldInfo.cs
- CheckBoxAutomationPeer.cs
- QualifierSet.cs
- CanonicalizationDriver.cs
- SystemInfo.cs
- CryptoConfig.cs
- XmlSerializationReader.cs
- CodeDirectionExpression.cs
- WindowsAuthenticationModule.cs
- OracleTransaction.cs
- CallTemplateAction.cs
- ControlUtil.cs
- DeviceContext.cs
- ReadOnlyCollection.cs
- XmlSchemaAppInfo.cs
- AttributeCollection.cs
- ControlParser.cs
- WebPartZoneBaseDesigner.cs
- AutomationAttributeInfo.cs
- CacheMemory.cs
- ComponentGlyph.cs
- KeyValuePair.cs
- NotSupportedException.cs
- Classification.cs
- WebUtil.cs
- PeerCustomResolverBindingElement.cs
- FlowNode.cs
- NativeMethods.cs
- MultiPropertyDescriptorGridEntry.cs
- RequiredFieldValidator.cs
- DeviceContext2.cs
- StringConcat.cs
- Module.cs
- XdrBuilder.cs
- WorkflowRuntime.cs
- RangeValuePattern.cs
- PathData.cs
- Debug.cs
- DurableDispatcherAddressingFault.cs
- OleDbConnectionInternal.cs
- UpdateCommand.cs
- InvokeMethodActivity.cs
- WebEventCodes.cs
- UrlMappingsSection.cs
- AQNBuilder.cs
- SettingsPropertyNotFoundException.cs