Example #1
0
 /// <summary>
 /// Determines whether the format string is valid.
 /// </summary>
 /// <param name="format">The token to evaluate.</param>
 /// <returns>
 /// <c>true</c> if the specified format contains the text; otherwise, <c>false</c>.
 /// </returns>
 public static bool EvaluateFormat(string format)
 {
     if ((format == null) || (format == string.Empty))
     {
         return(false);
     }
     return(NumberFormatBase.ContainsKeywords(format, new string[] { NumberFormatBase.General.ToLower() }));
 }
Example #2
0
 /// <summary>
 /// Determines whether the format string is valid.
 /// </summary>
 /// <param name="format">The token to evaluate.</param>
 /// <returns>
 /// <c>true</c> if the specified format contains the text; otherwise, <c>false</c>.
 /// </returns>
 public static bool EvaluateFormat(string format)
 {
     return(NumberFormatBase.ContainsKeywords(format, keywords));
 }