Skip to content

Settings and activity

2 results found

  1. 45 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    Dmitry Shunkov supported this idea  · 
  2. 17 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Dmitry Shunkov commented  · 

    Workaround (works with nested properties):

    I wrote small extension for customized Dump, as described here https://www.linqpad.net/CustomizingDump.aspx and stored it in "My Extensions" query. It converts color to its hex representation with accordingly colored font:

    static object ToDump(object input)
    {
    if (input is Color color)
    {
    var hex = ColorTranslator.ToHtml(Color.FromArgb(color.ToArgb()));
    return Util.WithStyle(hex, $"color:{hex}");
    }
    return input;
    }