using System.Linq; // for Where
string removeHyphen(string src) {
var dst = new string (src.Where (c => !"-".Contains (c)).ToArray ());
return dst;
}
電話番号から"-"を抜く時などに使う。
More than 5 years have passed since last update.
using System.Linq; // for Where
string removeHyphen(string src) {
var dst = new string (src.Where (c => !"-".Contains (c)).ToArray ());
return dst;
}
電話番号から"-"を抜く時などに使う。
Register as a new user and use Qiita more conveniently