コード例 #1
0
 public bool Suggestion(string key)
 {
     key = key.Replace(" ", "").ToLower();
     return(NameEn.Replace(" ", "").ToLower().StartsWith(key) || NameKr.Replace(" ", "").ToLower().StartsWith(key));
 }
コード例 #2
0
 public bool Contain(string key)
 {
     key = key.Replace(" ", "").ToLower();
     return(NameEn.Replace(" ", "").ToLower().Contains(key) || NameKr.Replace(" ", "").ToLower().Contains(key));
 }