The Labs \ Source Viewer \ SSCLI \ System.CodeDom \ CodeLabeledStatement

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeLabeledStatement.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.CodeDom
  16. {
  17.    
  18.     using System.Diagnostics;
  19.     using System;
  20.     using Microsoft.Win32;
  21.     using System.Collections;
  22.     using System.Runtime.InteropServices;
  23.    
  24.     /// <devdoc>
  25.     /// <para>[To be supplied.]</para>
  26.     /// </devdoc>
  27.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  28.     public class CodeLabeledStatement : CodeStatement
  29.     {
  30.         private string label;
  31.         private CodeStatement statement;
  32.        
  33.         /// <devdoc>
  34.         /// <para>[To be supplied.]</para>
  35.         /// </devdoc>
  36.         public CodeLabeledStatement()
  37.         {
  38.         }
  39.        
  40.         /// <devdoc>
  41.         /// <para>[To be supplied.]</para>
  42.         /// </devdoc>
  43.         public CodeLabeledStatement(string label)
  44.         {
  45.             this.label = label;
  46.         }
  47.        
  48.         /// <devdoc>
  49.         /// <para>[To be supplied.]</para>
  50.         /// </devdoc>
  51.         public CodeLabeledStatement(string label, CodeStatement statement)
  52.         {
  53.             this.label = label;
  54.             this.statement = statement;
  55.         }
  56.        
  57.         /// <devdoc>
  58.         /// <para>[To be supplied.]</para>
  59.         /// </devdoc>
  60.         public string Label {
  61.             get { return (label == null) ? string.Empty : label; }
  62.             set { this.label = value; }
  63.         }
  64.        
  65.         /// <devdoc>
  66.         /// <para>[To be supplied.]</para>
  67.         /// </devdoc>
  68.         public CodeStatement Statement {
  69.             get { return statement; }
  70.             set { this.statement = value; }
  71.         }
  72.     }
  73. }

Developer Fusion