public static MultipleDecoderData ReadFromString(string json) { MultipleDecoderData result = new MultipleDecoderData(); if (!string.IsNullOrEmpty(json)) { result.ReadJson(json, ReadSettings.Default); } return(result); }
public MultipleDecodeItem(string code, IDecoder decoder, params object[] args) { fDecodeData = new MultipleDecoderData(); QuoteStringList list = QuoteStringList.FromString(code); var items = list.CreateEnumerable(); foreach (string item in items) { IDecoderItem dItem = decoder.Decode(item, args); fDecodeData.AddItem(dItem); } Name = fDecodeData.ToJson(); DisplayName = Name; }