Home / C# Programming / Namespaces :: Discussion

Discussion :: Namespaces

  1. Which of the following is correct way to rewrite the C#.NET code snippet given below?

     using Microsoft.VisualBasic;
     using System.Windows.Forms;
     MessageBox.Show("Wait for a" + ControlChars.CrLf + "miracle");

     

     

  2. A.
     using System.Windows.Forms;
     using CtrlChars = Microsoft.VisualBasic.ControlChars;   
     MessageBox.Show("Wait for a" + CrLf + "miracle");
    B.
      using Microsoft.VisualBasic;
      using System.Windows.Forms;
      CtrlChars = ControlChars; 
      MessageBox.Show("Wait for a" + CtrlChars.CrLf + "miracle");
    C.
     using Microsoft.VisualBasic; 
     using System.Windows.Forms;
     CtrlChars = ControlChars; 
     MessageBox.Show ("Wait for a" + CrLf + "miracle");
    D.
     using System.Windows.Forms;
     using CtrlChars = Microsoft.VisualBasic.ControlChars;   
     MessageBox.Show("Wait for a" + CtrlChars.CrLf + "miracle");

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment