- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
private static bool EndsWithSaurus(String s)
{
if ((s.Length > 5) &&
(s.Substring(s.Length - 6).ToLower() == "saurus"))
{
return true;
}
else
{
return false;
}
}
guest 11.01.2009 17:42 # +1
guest 07.02.2009 23:04 # 0
guest 10.08.2009 17:36 # 0
guest 22.08.2009 21:52 # +2
Webkill 18.06.2010 14:17 # +1
"some".ToLower().EndsWith("me")
guest 18.06.2010 10:31 # 0
Webkill 18.06.2010 14:16 # 0
хм...
techlead_seneor_228 03.02.2023 12:07 # 0
private static bool EndsWithSaurus(String s,string saurus="saurus")
{
return s.EndsWith(saurus,StringComparison.Invar iantCultureIgnoreCase)
}