Note that the following code in a class is one class
private string _fee;
private string _receipt;
public string Fee
{
get { return _fee; }
private set { _fee = value; }
}
public string Receipt
{
get { return _receipt; }
private set { _receipt = value;}
}
public MyValue(string fee, string receipt) : this()
{
_fee = int.Parse(receipt).ToString();
_receipt = receipt;
}
As you can see, my property does nothing, so I have to use
_fee = int.Parse(fee).ToString();
_receipt = receipt;
or
Fee = int.Parse(fee).ToString();
Receipt = receipt;
source
share