Copied to clipboard

Flag this post as spam?

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


  • Arjan 21 posts 91 karma points
    Jan 12, 2016 @ 09:21
    Arjan
    0

    Multi Url Picker impossible syntax errors?

    guys, this is weird, how is this possible?

    CurrentPage.GetPropertyValue<MultiUrls>("contentLink").FirstOrDefault()
    

    RUNTIME ERROR

    'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'RJP.MultiUrlPicker.Models.MultiUrls' does not contain a definition for 'FirstOrDefault'

    var links = CurrentPage.GetPropertyValue<MultiUrls>("contentLink");
    Link linkProperty = links.FirstOrDefault();
    

    RUNTIME ERROR

    'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'RJP.MultiUrlPicker.Models.MultiUrls' does not contain a definition for 'FirstOrDefault'

    MultiUrls links = CurrentPage.GetPropertyValue<MultiUrls>("contentLink");
    Link linkProperty = links.FirstOrDefault();
    

    FINE NO PROBLEMS

Please Sign in or register to post replies

Write your reply to:

Draft