public override void SetListValues(string text) { _valueList.Clear( ); foreach (Match match in Regex.Matches(text, FrequencyValue.stringRegex, RegexOptions.IgnoreCase)) { if (!FrequencyValue.IsCheck(match.Value)) { continue; } Value valueObject = new FrequencyValue(match.Value); _valueList.Add(valueObject); } }
public O1_ObjectSequence(IStream element, int index, eTypeObjectCollection typeCollection, string text) : base(element, index, typeCollection) { string @string = text.Trim(); if (typeCollection == eTypeObjectCollection._1D) { if (@string.StartsWith("=")) { @string = @string.Substring(1).Trim(); if (FrequencyValue.IsCheck(@string)) { Value = new FrequencyValue(@string); } else if (CheckedVariableName(ref @string)) { Variable = new SequenceVariable(@string, new FrequencyValue(0)); } else { Type = eTypeObjectStream.Default; } } else if (FrequencyValue.IsCheck(@string)) { Value = new FrequencyValue(@string); } else if (CheckedTableName(ref @string)) { Table = new FrequencyTableSequence(this, @string); } else { Type = eTypeObjectStream.Default; } } else { if (CheckedTableName(ref @string)) { Table = new FrequencyTableSequence(this, @string); } else { Type = eTypeObjectStream.Default; } } }