//Visual Basic 2010 Debugging in Visual Studio Instrumenting Applications public class Example3 { public static void Main() { string[] arguments = Environment.GetCommandLineArgs(); int value1 = this.arguments(1); int value2 = this.arguments(2); string operation = this.arguments(3); object _switch1 = operation; if (_switch1.Equals("/operation:sum")) { Console.WriteLine(((((value1 + " + ") + value2) + " = ") + (value1 + value2))); } else { if (_switch1.Equals("/operation:multiply")) { Console.WriteLine(((((value1 + " * ") + value2) + " = ") + (value1 * value2))); } else { Console.WriteLine("Unknown operation."); } } Console.ReadLine(); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2011 - Alle rechten voorbehouden.