ValidateNullOrEmpty.cs 489 B

123456789101112131415161718192021222324
  1. using System;
  2. using Microsoft.VisualBasic;
  3. namespace PCL
  4. {
  5. // Token: 0x02000142 RID: 322
  6. public class ValidateNullOrEmpty : Validate
  7. {
  8. // Token: 0x06000D5F RID: 3423 RVA: 0x0005B7B0 File Offset: 0x000599B0
  9. public override string Validate(string Str)
  10. {
  11. string result;
  12. if (!Information.IsNothing(Str) && !string.IsNullOrEmpty(Str))
  13. {
  14. result = "";
  15. }
  16. else
  17. {
  18. result = "输入内容不能为空!";
  19. }
  20. return result;
  21. }
  22. }
  23. }