Esempio n. 1
0
 public override string ToString()
 {
     if (alias.IsNullOrEmpty())
     {
         return($"{outerText} ({types})");
     }
     return($"{outerText} | {alias} ({types})");
 }
Esempio n. 2
0
 public void ThrowError(string message, StringView errorPosition)
 {
     if (!errorPosition.IsNullOrEmpty())
     {
         throw new SearchExpressionEvaluatorException(message, errorPosition, this);
     }
     else
     {
         throw new SearchExpressionEvaluatorException(message, expression.outerText, this);
     }
 }
 public static bool IsNullOrWhiteSpace(this StringView sv)
 {
     if (sv.IsNullOrEmpty())
     {
         return(true);
     }
     for (var i = 0; i < sv.Length; ++i)
     {
         if (!char.IsWhiteSpace(sv[i]))
         {
             return(false);
         }
     }
     return(true);
 }