This is a console-based C# project demonstrating reading and writing user data using:
- JSON files
- XML files
- Class inheritance (
Admin,RegularUser) - Console I/O
- Newtonsoft.Json package for serialization/deserialization
🔗 [https://github.com/Nisha-gpt/userdata]
- Created console project with folder structure
- Added base model classes:
User,ContactDetails - Added initial
users.jsonwith sample data
- Created
sample.xml - Used
XmlDocumentto read and display user info from XML
- Prompted user to input Name, Age, City, Nationality, Phone, Email
- Created
Userobject and added it tousers.json
- Read and deserialized the full
users.json - Displayed each user's info using a loop
- Created
AdminandRegularUserclasses inheriting fromUser - Created
users_extended.jsonincluding aUserTypefield - Used conditional deserialization to read based on type
- Displayed Admin and RegularUser data accordingly
- C# (.NET 9 )
- Newtonsoft.Json
- System.Xml
- Git + GitHub for version control
- Windows 11 & Terminal
Nisha Murali