private static string AutoDetectP4Setting(P4Setting type) { string value; if (P4LastConnectionSettingsCache.TryGetValue(type, out value)) { return value; } FillP4LastConnectionSettingsCache(); return P4LastConnectionSettingsCache[type]; }
private static string AutoDetectP4Setting(P4Setting type) { string value; if (P4LastConnectionSettingsCache.TryGetValue(type, out value)) { return(value); } FillP4LastConnectionSettingsCache(); return(P4LastConnectionSettingsCache[type]); }
private static string AutoDetectP4Setting(P4Setting type) { Console.Out.WriteLine("Auto detection of {0} from P4V settings.", type); string value; if (P4LastConnectionSettingsCache.TryGetValue(type, out value)) { return value; } FillP4LastConnectionSettingsCache(); return P4LastConnectionSettingsCache[type]; }
private static string AutoDetectP4Setting(P4Setting type) { Console.Out.WriteLine("Auto detection of {0} from P4V settings.", type); string value; if (P4LastConnectionSettingsCache.TryGetValue(type, out value)) { return(value); } FillP4LastConnectionSettingsCache(); return(P4LastConnectionSettingsCache[type]); }
private static string GetP4Setting(string[] args, int argId, P4Setting settingType) { return args.Length > argId ? args[argId] : AutoDetectP4Setting(settingType); }
private static string GetP4Setting(string[] args, int argId, P4Setting settingType) { return(args.Length > argId ? args[argId] : AutoDetectP4Setting(settingType)); }