示例#1
0
     public static X status(this bool self, ValidString reason = null,
                            [P] string path = "", [M] string member = "",
                            [L] int line    = 0) => X.log
 ? Lg.Status(self ? X._done : X._fail, reason, path, member, line)
 : self ? X._done : X._fail;
示例#2
0
 public static status cont(ValidString reason = null,
                           [P] S p            = "", [M] S m = "", [L] int l = 0)
 => log?Lg.Status(_cont, reason, p, m, l) : _cont;
示例#3
0
 public static status fail(ValidString reason = null,
                           [P] S p            = "", [M] S m = "", [L] int l = 0)
 => log?Lg.Status(_fail, reason, p, m, l) : _fail;
示例#4
0
 public static status done(ValidString reason = null,
                           [P] S p            = "", [M] S m = "", [L] int l = 0)
 => log?Lg.Status(_done, reason, p, m, l) : _done;
示例#5
0
 public status Via(ValidString reason = null,
                   [P] string path    = "", [M] string member = "",
                   [L] int line       = 0)
 => log?Lg.Status(this, reason, path, member, line) : this;
示例#6
0
 public static status Eval(status s, [P] S path = "", [M] S member = "",
                           [L] int line         = 0)
 => log?Lg.Status(s, null, path, member, line) : s;