Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 503 posts 966 karma points c-trib
    Jul 30, 2012 @ 04:50
    Murray Roke
    0

    GetAllMembers not returning values in all properties.

    Hi

    I have the following query:

    var webMembers =
        Vega.USiteBuilder.MemberHelper.GetAllMembers().Select(m => m as WebsiteMember).Where(
            m => string.IsNullOrEmpty(m.MyProp));
    

    Q1) Am I doing this right? or is there a better way to get all the members of a certain type cast into the correct Type

    Q2) MyProp and all the other properties of each item in the webMembers collection are null (the base properties however are populated correctly)

    Suggestions?

Please Sign in or register to post replies

Write your reply to:

Draft