mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-04-22 20:29:34 +08:00
摆烂 2
This commit is contained in:
parent
6bed33d770
commit
2d1d516fbe
6
Main.cs
6
Main.cs
@ -41,9 +41,15 @@ string json = JsonTool.GetString(hashtable);
|
||||
|
||||
Hashtable hashtable2 = JsonTool.GetObject<Hashtable>(json) ?? new();
|
||||
|
||||
DataTable table2 = JsonTool.GetObject<DataTable>(json) ?? new();
|
||||
User u2 = JsonTool.GetObject<User>(hashtable2, "user") ?? Factory.GetUser();
|
||||
Room r2 = JsonTool.GetObject<Room>(hashtable2, "room") ?? Factory.GetRoom();
|
||||
|
||||
table2.AsEnumerable().ToList().ForEach(row =>
|
||||
{
|
||||
Console.WriteLine("Id: " + row["Id"] + ", Name: "+ row["Name"] + ", Age: " + row["Age"]);
|
||||
});
|
||||
|
||||
Console.WriteLine(u2.Username + " 进入了 " + r2.Roomid + " 房间");
|
||||
|
||||
Person p = new()
|
||||
|
Loading…
x
Reference in New Issue
Block a user