コード例 #1
0
        internal static BenchProfile Parse(IniParser parser)
        {
            var result = new BenchProfile
            {
                CpuType = parser.ParseEnum <CpuType>(),
                MHz     = parser.ParseInteger(),

                Unknown1 = parser.ParseFloat(),
                Unknown2 = parser.ParseFloat(),
                Unknown3 = parser.ParseFloat()
            };

            return(result);
        }
コード例 #2
0
        internal static BenchProfile Parse(IniParser parser)
        {
            parser.NextToken(IniTokenType.Identifier);
            parser.NextToken(IniTokenType.Equals);

            var result = new BenchProfile
            {
                CpuType = parser.ParseEnum <CpuType>(),
                MHz     = parser.ParseInteger(),

                Unknown1 = parser.ParseFloat(),
                Unknown2 = parser.ParseFloat(),
                Unknown3 = parser.ParseFloat()
            };

            parser.NextToken(IniTokenType.EndOfLine);

            return(result);
        }