public static void Main(string[] args) { MyScript script = new MyScript(); if (args == null || args.Length < 1 || args[0] == null || args[1] == null) { return; } script.setCity(args[0]); script.setUnits(args[1]); script.getWeather(); }
public static void Main(string[] args) { MyScript script = new MyScript(); if (args == null || args.Length < 1 || args[0] == null || args[1] == null) { return; } script.setCity(args[1]); float Lat = float.Parse(args[2]); float Long = float.Parse(args[3]); script.setKey(args[0]); script.setLat(Lat); script.setLong(Long); script.getWeather(); }