internal static bool TryParse( KeyValuePair <string, string> nameToIsin, out string name, out string isin) { name = nameToIsin.Key; isin = nameToIsin.Value; return(!string.IsNullOrWhiteSpace(name) && Isin.IsValidOrEmpty(isin)); }
public static bool TryParse( string[] input, out string name, out string isin) { name = string.Empty; isin = string.Empty; if (input.Count() != 2) { return(false); } name = input[0]; isin = input[1]; return(!string.IsNullOrWhiteSpace(name) && Isin.IsValidOrEmpty(isin)); }