Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Madden 241 posts 396 karma points MVP c-trib
    Aug 26, 2015 @ 10:30
    Tom Madden
    0

    item.GetValue throws and exception if the property doesn't exist

    it would be better if GetValue returned a null if the property didn't exist. I had to add a try catch around this call to get round this

    You can't check for it being null or empty because it doesn't get that far

    e.g. this doesn't help

    var item = Model.Items.ElementAt(0);
    var foo = String.IsNullOrEmpty(item.GetValue<string>("bar")) ? item.GetValue<string>("bar") : "";
    

    many thanks

    Tom

  • Dan Evans 616 posts 988 karma points
    Sep 23, 2015 @ 10:10
    Dan Evans
    0

    Did you ever solve this?

  • Tom Madden 241 posts 396 karma points MVP c-trib
    Sep 23, 2015 @ 10:31
    Tom Madden
    0

    Hi,

    this is fixed in the source code on Github from a commit on 24th July, I grabbed it from there and it did solve the problem.

    HTH

    t

  • Dan Evans 616 posts 988 karma points
    Sep 23, 2015 @ 10:46
    Dan Evans
    0

    Any idea when this will be released as an final update?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies