public static void Main()
Console.WriteLine("Hello World");
Author author = new Author();
author.Id = Guid.NewGuid();
author.FirstName = "Joydip";
author.LastName = "Kanjilal";
AuthorDto authorDto = (AuthorDto)author;
AuthorDto authorDto1 = new AuthorDto();
authorDto1.Id = Guid.NewGuid().ToString();
authorDto1.FirstName = "Joydip";
authorDto1.LastName = "Kanjilal";
Author author1 = (Author)authorDto1;
public string Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public static explicit operator AuthorDto(Author author)
AuthorDto authorDto = new AuthorDto();
authorDto.Id = author.Id.ToString();
authorDto.FirstName = author.FirstName;
authorDto.LastName = author.LastName;
public static explicit operator Author(AuthorDto authorDto)
Author author = new Author();
author.Id = new Guid(authorDto.Id);
author.FirstName = authorDto.FirstName;
author.LastName = authorDto.LastName;
public Guid Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }