public static void GetDataUsageFromString(string usageString, out DataUsages usage) { for (int i = 0; i < dataUsageStrings.Length; ++i) { if (String.Compare(usageString, dataUsageStrings[i], true) == 0) { usage = (DataUsages)i; return; } } usage = DataUsages.None; }
public static void GetDataUsageFromString(string usageString, out DataUsages usage) { for (int i = 0; i < dataUsageStrings.Length; ++i) { if (string.Compare(usageString, dataUsageStrings[i], StringComparison.OrdinalIgnoreCase) == 0) { usage = (DataUsages)i; return; } } usage = DataUsages.None; }
public static void GetDataUsageFromString(string usageString, out DataUsages usage) { for (int i = 0; i < dataUsageStrings.Length; ++i) { if (String.Compare(usageString, dataUsageStrings[i], true) == 0) { usage = (DataUsages)i; return; } } usage = DataUsages.None; }