如何在类中使用Console.WriteLine

我是一个新手,正在尝试东西!

所以我试图反序列化从api返回的json字符串,并从中获取int status_code 他们返回的json

overall BestGamer = JsonConvert.DeserializeObject<overall>(thicky);

Console.WriteLine(BestGamer);
{
"updated":"2020-01-13T05:08:58+0000"
"term":"bojack"
"status_code":200
"variant":"ivafull"
}

我在这里上课

public class overall
    {
        public int status_code { get; set; }
    }

但是每当我编译并运行它时,它只会说TestConsole(我的项目的名称).overall(TestConsole.overall)。

我正在使用NewtonSoft反序列化

如果有人可以帮助我,我将非常感激:)