/opensource/extensions/system/string/queries/IsNullOrEmpty.cs

http://zielonka.codeplex.com · C# · 13 lines · 10 code · 0 blank · 3 comment · 0 complexity · 480f13db0dc1758fd510f94a460b9f61 MD5 · raw file

  1. namespace zielonka.co.uk.extensions.system.@string.queries
  2. {
  3. /*example
  4. if (myString.IsNullOrEmpty()) //... do something
  5. */
  6. public static partial class GenericExtensions
  7. {
  8. public static bool IsNullOrEmpty(this string obj)
  9. {
  10. return obj.IsNullOrEmpty();
  11. }
  12. }
  13. }