Ejemplo n.º 1
0
        private bool IsDragAndDropStart(string[] args)
        {
            if (args == null)
                return false;

            if (!args.Any())
                return false;

            if (args.Any(x => x.StartsWith("/") || x.StartsWith("-")))
                return false;

            if (!args.All(x => _pathSafe.IsPathRooted(x) && _pathSafe.HasExtension(x)))
                return false;

            return true;
        }