Mono.Debugger.DebuggerOptions.ParseDebugFlags C# (CSharp) Method

ParseDebugFlags() static private method

static private ParseDebugFlags ( DebuggerOptions options, string value ) : bool
options DebuggerOptions
value string
return bool
        static bool ParseDebugFlags(DebuggerOptions options, string value)
        {
            if (value == null)
                return false;

            int pos = value.IndexOf (':');
            if (pos > 0) {
                string filename = value.Substring (0, pos);
                value = value.Substring (pos + 1);

                options.DebugOutput = filename;
            }

            DebugFlags flags;
            if (!Report.ParseDebugFlags (value, out flags))
                return false;

            options.DebugFlags = flags;
            return true;
        }