Exemple #1
0
        public void Run()
        {
            // Create a ProgramHelper object
            ProgramHelper theProgramHelper = new ProgramHelper();

            // convert a line of CSharp to vb
            string vbString = theProgramHelper.ConvertToVB("This is a VB String to convert.");
            Console.WriteLine(vbString);

            // convert the converted line back to CSharp
            string cSharpString = theProgramHelper.ConvertToCSharp(vbString);
            Console.WriteLine(cSharpString);
        }
Exemple #2
0
        public void Run()
        {
            // Create a ProgramHelper object
            ProgramHelper theProgramHelper = new ProgramHelper();

            // convert a line of CSharp to vb
            string vbString = theProgramHelper.ConvertToVB("This is a VB String to convert.");

            Console.WriteLine(vbString);

            // convert the converted line back to CSharp
            string cSharpString = theProgramHelper.ConvertToCSharp(vbString);

            Console.WriteLine(cSharpString);
        }