ErrorValue TryError (string error, ErrorValue ret) { if (error == null) throw new Exception ("Invalid error"); string sub = s.Substring (pos); if (s.StartsWith (error)){ pos += error.Length; return ret; } return null; }
ErrorValue TryError(string error, ErrorValue ret) { if (error == null) { throw new Exception("Invalid error"); } string sub = s.Substring(pos); if (s.StartsWith(error)) { pos += error.Length; return(ret); } return(null); }