public bool CheckIsField(string path) { string name; if (path.StartsWith(".", StringComparison.Ordinal)) { name = path.Substring(1); } else { name = path; } return(_model.CheckName(name)); }
public bool CheckIsField(string path) { var name = path.StartsWith(".", StringComparison.Ordinal) ? path.Substring(1) : path; return(_model.CheckName(name)); }