예제 #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);
        }