示例#1
0
 /// <summary>
 /// Gets if source string ends with specified value.
 /// </summary>
 /// <param name="value">Start string value.</param>
 /// <param name="case_sensitive">Specifies if compare is case-sensitive.</param>
 /// <returns>Returns true if source string ends with specified value.</returns>
 public bool EndsWith(string value, bool case_sensitive)
 {
     if (case_sensitive)
     {
         return(String2.EndsWith(m_SourceString, value, StringComparison2.InvariantCulture));
     }
     else
     {
         return(String2.EndsWith(m_SourceString, value, StringComparison2.InvariantCultureIgnoreCase));
     }
 }