Accessors Access Level C# with Example
using System; namespace CSharpClass { class Person { public string Name { get; private set; } public Person( string name ) { Name = name; } } class UsingPerson { public static void Main() { Person doctor = new Person("Dr. Sharma"); Console.WriteLine("Name: {0}", doctor.Name); } } }