Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
namespace Helper{public static class StringHelper{ public static bool IsAllUpper(string s) { //implementation left as an exercise to the reader }}}
Namespace Helper Public Module StringHelper Public Function IsAllUpper(ByVal s As String) As Boolean 'implementation left as an exercise to the reader End Function End ModuleEnd Namespace
string s = ...bool itIs = StringHelper.IsAllUpper(s);
Dim s As String = ...Dim itIs As Boolean = StringHelper.IsAllUpper(s)
bool itIs = s.IsAllUpper();
Dim itIs As Boolean = s.IsAllUpper()
<Extension()> _ Public Function IsAllUpper(ByVal s As String) As Boolean ...
[Extension()]public static bool IsAllUppercase(string s) {...}public static bool IsAllUppercase(this string s) {...}
using Helper;
Imports Helper