ValidateNullable.cs 461 B

123456789101112131415161718192021222324
  1. using System;
  2. using Microsoft.VisualBasic;
  3. namespace PCL
  4. {
  5. // Token: 0x02000141 RID: 321
  6. public class ValidateNullable : Validate
  7. {
  8. // Token: 0x06000D5C RID: 3420 RVA: 0x0005B788 File Offset: 0x00059988
  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 = null;
  19. }
  20. return result;
  21. }
  22. }
  23. }