Skip to content

Instantly share code, notes, and snippets.

@AbhinavPradeep
Created December 12, 2019 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbhinavPradeep/d9606ee17af30551503a04b52208613a to your computer and use it in GitHub Desktop.
Save AbhinavPradeep/d9606ee17af30551503a04b52208613a to your computer and use it in GitHub Desktop.
Describing the fields required for an author.
using System.Collections.Generic;
using System.Text.Json;
namespace AuthorSerialize
{
public class Author
{
public string FirstName {get; set;}
public string LastName {get;set;}
public Address Address{get;set;}
public List<Book> Books {get;set;}
public Author()
{
Address = new Address();
Books = new List<Book>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment