Copied to clipboard

Flag this post as spam?

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


  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 11, 2013 @ 15:40
    Dan Diplo
    0

    Make Strongly Typed for Intellisense Support

    Hi Matt,

    You should be a married man who you read this - congrats :)

    Anyway, just a small suggestion...

    If you change..

    var config = uTwit.DeserializeValue(settings.GetPropertyValue(twitterOAuthPropertyAlias);
    var tweets = uTwit.GetLatestTweets(config, numberOfTweetsToDisplay, includeReplies, includeRetweets);

    To...

    TwitterOAuthDataValue config = uTwit.DeserializeValue(settings.GetPropertyValue(twitterOAuthPropertyAlias));
    IEnumerable<Status> tweets = uTwit.GetLatestTweets(config, numberOfTweetsToDisplay, includeReplies, includeRetweets);

    Then you get strongly typed objects to work with, which seems much nicer as you get full intellisense support (and it performs better, too). Any reason why you made it dynamic?

Please Sign in or register to post replies

Write your reply to:

Draft