Click here to Skip to main content
15,920,632 members
Articles / Programming Languages / C#

Handy Extension Methods

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
6 Jun 2011CPOL 7.6K  
public static bool IsInString(this char c, string range){ return range.Contains(c.ToString());}public static bool IsInteger(this string text){ int num; return int.TryParse(text, out num);}public static bool IsNullOrEmpty(this string str){ return...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Iran
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions