Advertisement
Guest User

GMAssetCompiler Class11 method_5

a guest
Jun 25th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public string method_5(string string_3)
  2. {
  3. string result;
  4. if (string.IsNullOrEmpty(string_3) && this.list_1.Count > 0)
  5. {
  6. result = this.list_1[0];
  7. }
  8. else
  9. {
  10. string text = string.Empty;
  11. foreach (string text2 in this.list_1)
  12. {
  13. if (string_3.IndexOf(text2) == 0)
  14. {
  15. if (string.IsNullOrEmpty(text))
  16. {
  17. text = text2;
  18. }
  19. else if (text2.Length < text.Length)
  20. {
  21. text = text2;
  22. }
  23. }
  24. }
  25. result = text;
  26. }
  27. return result;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement