public static int Main(string[] args) { // Check number of args if (args.Length != 2) { Console.WriteLine("USAGE: WaitAllEx6a /size:<int> /pos:<int>"); return(-1); } // Get the args int iPos = -1, iSize = -1;; for (int i = 0; i < args.Length; i++) { if (args[i].ToLower().StartsWith("/size:")) { iSize = Convert.ToInt32(args[i].Substring(6)); continue; } if (args[i].ToLower().StartsWith("/pos:")) { iPos = Convert.ToInt32(args[i].Substring(5)); } } WaitAllEx wae = new WaitAllEx(); return(wae.Run(iSize, iPos)); }
public static int Main(string[] args) { // Check number of args if(args.Length != 2) { Console.WriteLine("USAGE: WaitAllEx9a /size:<int> /pos:<int>"); return -1; } // Get the args int iPos=-1, iSize = -1;; for(int i=0;i<args.Length;i++) { if(args[i].ToLower().StartsWith("/size:")) { iSize = Convert.ToInt32(args[i].Substring(6)); continue; } if(args[i].ToLower().StartsWith("/pos:")) { iPos = Convert.ToInt32(args[i].Substring(5)); } } WaitAllEx wae = new WaitAllEx(); return wae.Run(iSize, iPos); }
public static int Main() { WaitAllEx wae = new WaitAllEx(); wae.Run(); Console.WriteLine(wae.iRet == 100 ? "Test Passed!" : "Test Failed"); return wae.iRet; }
public static int Main() { WaitAllEx wae = new WaitAllEx(); wae.Run(); Console.WriteLine(wae.iRet == 100 ? "Test Passed!" : "Test Failed"); return(wae.iRet); }
public static int Main() { WaitAllEx wae = new WaitAllEx(); return(wae.Run()); }
public static int Main() { WaitAllEx wae = new WaitAllEx(); return wae.Run(); }