using System;
public class Product
{
private double length;
public double Length
get
return length * 2.54;
}
set
length = value / 2.54;
public class Program
public static void Main()
var p = new Product();
p.Length = 1;
p.Length = p.Length + 1;
Console.WriteLine(p.Length);