public override string ToString() { string[] asin = ASIN.Split(':'); string asinString = string.Empty; if (asin.Length >= 1) { asinString = asin[1]; } return $"ASIN-{asinString},type-{type},Price-{Price},IsPrime-{IsPrime},OutOfStock-{OutOfStock}"; }
public override string ToString() { string[] asin = ASIN.Split(':'); string asinString = string.Empty; if (asin.Length >= 1) { asinString = WhiteSpaceRegex.IsMatch(asin[1]) ? WhiteSpaceRegex.Replace(asin[1], string.Empty).Trim() : asin[1]; ; } return $"ASIN-{asinString},type-{type},Price-{Price},IsPrime-{IsPrime},OutOfStock-{OutOfStock}"; }