public GetNextSuffixedValue ( string prefix ) : string | ||
prefix | string | |
return | string |
/// <summary> /// /// </summary> /// <param name="cond"></param> /// <returns></returns> protected override bool TryParse(string cond) { if (!cond.StartsWith(header)) { return(false); } try { var parser = new StringSuffixParser(cond.Replace(header, "")); Symbol = parser.GetNextSuffixedValue(symbolSuffix); Exchange = parser.GetNextSuffixedValue(exchangeSuffix); SecType = parser.GetNextSuffixedValue(secTypeSuffix); if (!string.IsNullOrWhiteSpace(parser.Rest)) { return(base.TryParse(parser.Rest)); } } catch { return(false); } return(true); }
/// <summary> /// /// </summary> /// <param name="cond"></param> /// <returns></returns> protected override bool TryParse(string cond) { if (!cond.StartsWith(header)) return false; try { var parser = new StringSuffixParser(cond.Replace(header, "")); Symbol = parser.GetNextSuffixedValue(symbolSuffix); Exchange = parser.GetNextSuffixedValue(exchangeSuffix); SecType = parser.GetNextSuffixedValue(secTypeSuffix); if (!string.IsNullOrWhiteSpace(parser.Rest)) return base.TryParse(parser.Rest); } catch { return false; } return true; }