What is the difference between {get;} and Readonly in the following C# code?
String name { get { return "Tom"; } }
const String name = "Tom";
readonly String name = "Tom";
please explain with simple problem or any reference.
What is the difference between {get;} and Readonly in the following C# code?
String name { get { return "Tom"; } }
const String name = "Tom";
readonly String name = "Tom";
please explain with simple problem or any reference.