コード例 #1
0
ファイル: WuAcExtensions.cs プロジェクト: blparr/XWeather
 public static string GetZip(this WuAcLocation location)
 => string.IsNullOrEmpty(location.zmw) ? string.Empty : location.zmw.Substring(0, location.zmw.IndexOf('.'));
コード例 #2
0
ファイル: WuAcExtensions.cs プロジェクト: blparr/XWeather
 public static string [] GetCityStateArray(this WuAcLocation location)
 => string.IsNullOrEmpty(location.name) ? null : Regex.Split(location.name, @"\s*,\s*");