- ตัวดำเนินการ
-
เรียนรู้
ศูนย์การเรียนรู้ Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ ศูนย์การเรียนรู้ C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ ศูนย์การเรียนรู้ C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++
- โจทย์
Converters
JSON to C# Class Generator
Turn a JSON sample into C# model classes ready for System.Text.Json or Newtonsoft.Json.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the JSON to C# Class
- Paste a JSON sample.
- Choose class or record, the attribute style, collections and namespace.
- Copy the code or download Models.cs.
Frequently asked questions
Which JSON library attributes are supported?
System.Text.Json ([JsonPropertyName]) and Newtonsoft.Json ([JsonProperty]), or none.
How are numbers typed?
Whole numbers become long and decimals become double. Dates in ISO format become DateTime.
What are nullable reference types?
With the option on, values that can be null get a ? such as string?, matching C# 8+ nullable context.
ฝึก Python ด้วยโจทย์เขียนโค้ด
แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI