Permalink
Fetching contributors…
Cannot retrieve contributors at this time
|
namespace ExtensionMethods |
|
{ |
|
public static class MyExtensions |
|
{ |
|
public static int WordCount(this String str) |
|
{ |
|
return str.Split(new char[] { ' ', '.', '?' }, |
|
StringSplitOptions.RemoveEmptyEntries).Length; |
|
} |
|
} |
|
} |
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.