blob: bc03f94924522f9abbb4e9d2aef383ec6ff09b58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
namespace jive
{
static public class StringExtensions
{
static public string format(this string formatted_string, params object[] arguments)
{
return string.Format(formatted_string, arguments);
}
static public bool is_equal_to_ignoring_case(this string left, string right)
{
return string.Compare(left, right, true) == 0;
}
static public bool is_blank(this string message)
{
return string.IsNullOrEmpty(message);
}
static public string to_string<T>(this T item)
{
return "{0}".format(item);
}
}
}
|