You are almost there, you just need to use the constructor .
public class ProfitVals {
private static double _hiprofit;
public static Double HiProfit
{
get { return _hiprofit; }
set { _hiprofit = value; }
}
public ProfitVals() {
HiProfit = 0.09;
}
}
source
share