property_get1
A get accessor returns the value of a private field, still supports other activities. The example below, is a demo showing get property, and it is advised to use "set" property to manipulate data with a keyword "value".
Code :

using System;
//write onley
//csc property_get1.cs
public class clsPro
{
private double sp = 0;public double add = 0;
public clsPro() { Console.WriteLine("default constructor evoked");}
~clsPro() { Console.WriteLine("destructor evoked");}
public double SP
{
get
{
sp = 50;
add = 50 + 50;
Console.WriteLine("Local: Original value : "+ sp);
Console.WriteLine("Local: sp * 2 : "+ sp *2);
Console.WriteLine("Local: add 50 +50 : "+ add);
return sp; // sends to caller
}
}
}

class Test
{
public static void Main(string[] args)
{
Console.WriteLine("Using get Read Property : ");
clsPro pr = new clsPro();
Console.WriteLine("Read Only Value " + pr.SP);
Console.WriteLine("Read Only Value " + pr.add);


}
}