You would want the MyKeyEvent class to look like the following:
public class MyKeyEvent { public int EventID {get; set;} public string EventKind {get; set;} public double CurtBar {get; set;} public MyKeyEvent() {} public MyKeyEvent(int eventID, string kind, double curtBar) { this.EventID = eventID; this.EventKind = kind; this.CurtBar = curtBar; } }
Leave a comment: