xxxxxxxxxx
public class Book
{
public required string Title { get; set; }
public override string ToString()
{
return $"Title: {Title}";
}
}
xxxxxxxxxx
public class MyClass
{
public int MyProperty { get; set; }
public override string ToString()
{
return $"MyClass with property value {MyProperty}";
}
}