Namespace yahoo
{
Class Program
{
public static int Main(string[] args)
{
TextHelper textHelper = new TextHelper();
SayHello(textHelper);
char[] output = textHelper.GetHelloArray();
foreach (char c in output)
{
System.Console.WriteLine(c);
}
string outputString = textHelper.HelloWorldProperty;
for (int x = 0; x %26lt; outputString.Length; x++)
{
System.Console.WriteLine(outputString[...
}
System.Console.WriteLine(textHelper.Ge...
System.Console.WriteLine();
int input;
do
{
input = System.Console.Read();
} while (input != textHelper.GetKeyForContine());
ExerciseSwitch(1);
ExerciseSwitch(2);
ExerciseSwitch(3);
ExerciseSwitch(Square(2));
return 0;
}
private static void SayHello(TextHelper textHelper)
{
System.Console.WriteLine(textHelper.He...
}
private static long Square(int x)
{
return x * x;
}
private static void ExerciseSwitch(long y)
{
switch (y)
{
case 1: System.Console.WriteLine("2");
goto case 2;
case 2:
System.Console.WriteLine("1 or 2");
Convert code from C# to VB?
Try this site..
http://converter.telerik.com/
There are a few other sites as well.
Most of them work about 80% correctly and the rest you have to do yourself.
Good Luck
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment