I have a Book class with a constructor which has a title parameter:
public class Book
public Book (string title)
{
this.Title = title;
}
I need to supply a Title's (read-only property) value by calling the Book constructor. I tried the following but not sure if this is correct since as I understood read-only property should only have a getter.
public string Title { get; private set {} }
I need Help to Finalize / correct this code block. Thank you in advance.