| 1234567891011121314151617 |
- namespace ET;
- public static class StringArrUtils
- {
- public static string GetValueFromArr(this string[] arr, string name)
- {
- foreach (string str in arr)
- {
- if (str.StartsWith("--" + name + "="))
- {
- return str.Substring(name.Length + 3);
- }
- }
- return null;
- }
- }
|