Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个 JSON 文件。我想在 C# 中动态地从所有构造函数 Animal 中读取 id、name、age 及其值。有谁知道该怎么做?非常感谢。
new Animals( new Animal( "id": "001", "name": "Monkey", "age": "2", ), new Animal( "id": "002", "name": "Elephant", "age": "4", ) )