I want to add a variable to a class without modifying the original class. The class can not be modified in anyway because it is tie to an api and would cause build errors if modified. Currently the view is displaying all the variables in the class, I want to add a variable to this class during runtime to display to the view.
public class EventSummaryDto
{
public long Id { get; set; }
public string DeviceId { get; set; }
public DateTime EventTime { get; set; }
public int EventCode { get; set; }
public string EventName { get; set; }
public int DigitalPositionMM { get; set; }
public string ControllerType { get; set; }
}