Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripButton.cs
- EntityStoreSchemaFilterEntry.cs
- AsyncPostBackErrorEventArgs.cs
- GregorianCalendarHelper.cs
- InputBindingCollection.cs
- oledbconnectionstring.cs
- DecimalAnimationUsingKeyFrames.cs
- Certificate.cs
- DependencyProperty.cs
- DrawingState.cs
- ISFClipboardData.cs
- ManagedIStream.cs
- IISUnsafeMethods.cs
- ReaderWriterLock.cs
- CollectionTraceRecord.cs
- EntityDataSourceColumn.cs
- NativeRecognizer.cs
- AccessDataSource.cs
- MetadataArtifactLoaderResource.cs
- HtmlLinkAdapter.cs
- UnauthorizedWebPart.cs
- StoreContentChangedEventArgs.cs
- Pkcs7Signer.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SmiContextFactory.cs
- Section.cs
- Stack.cs
- DynamicValidator.cs
- TriggerAction.cs
- SubclassTypeValidatorAttribute.cs
- ConvertTextFrag.cs
- RowBinding.cs
- Empty.cs
- MethodRental.cs
- ToolStripDropDownItem.cs
- RuntimeResourceSet.cs
- VectorKeyFrameCollection.cs
- DesignerVerbCollection.cs
- AccessibilityApplicationManager.cs
- XmlDesigner.cs
- VersionedStreamOwner.cs
- PkcsUtils.cs
- KeyConstraint.cs
- FacetDescriptionElement.cs
- CAGDesigner.cs
- WorkflowOwnerAsyncResult.cs
- WindowAutomationPeer.cs
- ContentIterators.cs
- TransformGroup.cs
- CssTextWriter.cs
- MetadataUtilsSmi.cs
- SequentialOutput.cs
- SQLSingle.cs
- HighlightVisual.cs
- Empty.cs
- TextInfo.cs
- GridSplitterAutomationPeer.cs
- ToolStripPanelRenderEventArgs.cs
- SchemaImporterExtensionElement.cs
- EntitySetBase.cs
- TypeCollectionPropertyEditor.cs
- UdpDiscoveryEndpoint.cs
- RayHitTestParameters.cs
- GenericAuthenticationEventArgs.cs
- ButtonPopupAdapter.cs
- ProcessHostMapPath.cs
- CodeThrowExceptionStatement.cs
- _ConnectOverlappedAsyncResult.cs
- PropertyDescriptorComparer.cs
- VirtualPathUtility.cs
- AvtEvent.cs
- BindableAttribute.cs
- AppDomainProtocolHandler.cs
- WinFormsComponentEditor.cs
- SHA1.cs
- ProxyHwnd.cs
- UIElement3D.cs
- XmlIncludeAttribute.cs
- StreamWriter.cs
- GridSplitter.cs
- SeparatorAutomationPeer.cs
- NetworkInformationException.cs
- WinOEToolBoxItem.cs
- EntityContainerEntitySet.cs
- UrlPath.cs
- HttpResponseBase.cs
- RtfToken.cs
- ArrayHelper.cs
- Inflater.cs
- DocumentPageViewAutomationPeer.cs
- EasingKeyFrames.cs
- JpegBitmapDecoder.cs
- WebServiceTypeData.cs
- TextTrailingCharacterEllipsis.cs
- SBCSCodePageEncoding.cs
- TypeExtension.cs
- NameValueCollection.cs
- AllMembershipCondition.cs
- PageCanvasSize.cs
- Color.cs