custom highlightening combined with horizontal run
Options
if i want to highlight only 1 object attribute, how do i use it in combination with Horizontal run?
void Main()
{
extendedchild a = new extendedchild();
a.parent3 = DateTime.Now;
Util.HorizontalRun(true, a).Dump();
}
///
public class parent
{
public double parent1 { get; set; } public bool child1 { get; set; } public double parent2 { get; set; } public DateTime parent3 { get; set; } // need to highlight parent3 in yellow
}
i want to only highlight this in yellow
Comments
-
var p = new parent(); p.parent3 = DateTime.Now; var a = new { p.child1, p.parent1, p.parent2, parent3 = Util.Highlight (p.parent3) }; Util.HorizontalRun(true, a).Dump();