Example #1
0
        public static void Main(string[] args)
        {
            IWrapper wrapper = new FileDetailsExtended();
            var      result  = wrapper.Action <string>(args[0], args[1]);

            Debug.WriteLine("Parameter Action: " + args[0]);
            Debug.WriteLine("Parameter Filename: " + args[1]);
            Debug.WriteLine("Action result : " + result);
        }
Example #2
0
        public static void Main(string[] args)
        {
            IWrapper wrapper = new FileDetailsExtended();

            if (args.Length > 1)
            {
                var result = wrapper.Action <string>(args[0], args[1]);

                Debug.WriteLine("Parameter Action: " + args[0]);
                Debug.WriteLine("Parameter Filename: " + args[1]);
                Debug.WriteLine("Action result : " + result);
            }
            else
            {
                Debug.WriteLine("Please supply 2 arguments! (required action and filename)");
            }
        }