Beispiel #1
0
        public static int FileNameSpace(string[] arguments)
        {
            switch (arguments[0])
            {
            case "is-assembly":
            {
                bool is_assembly;

                if (FileUnit.IsAssembly(arguments[1], out is_assembly))
                {
                    return(is_assembly ? 1 : 0);
                }

                return(2);
            }

            default:
                break;
            }

            return(-1);
        }