以下代码在.net 4.0上运行正常,但我需要在.net 3.5服务器上更新此代码。
var fb = new FacebookClient(FbAccessToken);
dynamic friends = fb.Query("SELECT uid, name, pic_square,birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())");
string strFriends = "";
foreach (dynamic friend in friends)
{
string Fbday = friend["birthday_date"];
// do something
}
在.net 3.5上更新此代码时,动态出现错误,我知道动态关键字将在.net 4.0及更高版本上运行。但我需要将其转换为.net 3.5。可以帮助我在.net 3.5中如何做到这一点吗?