Ejemplo n.º 1
0
        Evaluate(
            IBooleanCommandLineArgument realArg)
        {
            foreach (var arg in Arguments)
            {
                var splitArg = arg.Split('=');
                if (splitArg.Length != 1)
                {
                    continue;
                }

                if (UsesName(realArg, splitArg))
                {
                    return true;
                }
            }
            return (realArg is ICommandLineArgumentDefault<bool>) ? (realArg as ICommandLineArgumentDefault<bool>).Default : false;
        }
Ejemplo n.º 2
0
        Evaluate(
            IBooleanCommandLineArgument realArg)
        {
            foreach (var arg in Arguments)
            {
                var splitArg = arg.Split('=');
                if (splitArg.Length != 1)
                {
                    continue;
                }

                if (UsesName(realArg, splitArg))
                {
                    return(true);
                }
            }
            return((realArg is ICommandLineArgumentDefault <bool>) ? (realArg as ICommandLineArgumentDefault <bool>).Default : false);
        }