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

            var result = new LrpQuoteEntry();

            stream.ValidateVerbatimText('{');
            result.Price = stream.ReadDouble("Price");
            stream.ValidateVerbatimText(';');
            result.Volume = stream.ReadDouble("Volume");
            stream.ValidateVerbatimText(';');
            stream.ValidateVerbatimText('}');
            return(result);
        }