how to make a public get and private set in c# code example Example: c# private set public int data { get; private set; } = 0;