16 if (!str.EndsWith(
"."))
return str +
".";
26 return string.IsNullOrWhiteSpace(str);
35 return string.IsNullOrEmpty(str);
static string EnsureEndsWithDot(this string str)
Ensures that the string ends with a dot ('.').
static bool IsNullOrEmpty(this string str)
Indicates whether the specified string is null or an empty string ("").
static bool IsNullEmptyOrWhiteSpace(this string str)
Indicates whether a specified string is null, empty, or consists only of white-space characters.