I have a Json object. I want to update its lastUpdate
property whenever any of the other properties are set
(changed).
How can I fix this without calling the lastUpdate
property from the calling function?
public class TickerData
{
public string symbol { get; set; }
public string exchange { get; set; }
public SecurityType securityType { get; set; }
public string Currency { get; set; } // convert to enum later
public strategy entryStrategy { get; set; }
public OHLCV ohlcv { get; set; }
public HistoricalDataEventArgs[] historicalData { get; set; }
public DateTime date { get; set; }
public decimal open { get; set; }
public decimal high { get; set; }
public decimal low { get; set; }
public decimal close { get; set; }
public DateTime lastUpdate { get; set; }
}