Example #1
0
        private static FileItemPathInfo[] GetPathInfoListParam(string key, IDictionary <string, object> args)
        {
            JArray jArray = args.ContainsKey(key) ? (args[key] as JArray) : null;

            if (jArray == null)
            {
                return(new FileItemPathInfo[0]);
            }
            return((from JArray rawInfo in jArray
                    select FileItemPathInfo.Create(rawInfo)).ToArray());
        }
Example #2
0
 private static FileItemPathInfo GetPathInfoParam(string key, IDictionary <string, object> args)
 {
     return(FileItemPathInfo.Create(args.ContainsKey(key) ? (args[key] as JArray) : null));
 }