コード例 #1
0
ファイル: Program.cs プロジェクト: hombrevrc/FDK
        public static LrpQuote ReadQuote(this TextStream stream, string name = null)
        {
            if (null != name)
            {
                stream.ValidateVerbatimText(name);
                stream.ValidateVerbatimText(" = ");
            }
            var result = new LrpQuote();

            stream.ValidateVerbatimText('{');
            result.Symbol = stream.ReadAString("Symbol");
            stream.ValidateVerbatimText(';');
            result.CreatingTime = stream.ReadTime("CreatingTime");
            stream.ValidateVerbatimText(';');
            result.Bids = stream.ReadQuoteEntryArray("Bids");
            stream.ValidateVerbatimText(';');
            result.Asks = stream.ReadQuoteEntryArray("Asks");
            stream.ValidateVerbatimText(';');
            result.Id = stream.ReadAString("Id");
            stream.ValidateVerbatimText(';');
            stream.ValidateVerbatimText('}');
            return(result);
        }