I am using following code but it only shows for my account only i want to get details of others using screenname so i can get friendscount of that user (v2.1.11)
var twitterCtx = new LinqToTwitter.TwitterContext(auth);
var accounts =
from acct in twitterCtx.Account
where acct.Type == AccountType.VerifyCredentials
select acct;
Account account = accounts.SingleOrDefault();
User user = account.User;
Status tweet = user.Status ?? new Status();
Console.WriteLine(
"User ID: {0}\nScreen Name: {1}\nTweet: {2}\n Tweet ID: {3}",
user.Identifier.ID,
user.Identifier.ScreenName,
tweet.Text,
tweet.StatusID);
string followerscount = user.FriendsCount.ToString();
string tweetscount = user.StatusesCount.ToString();
Console.WriteLine("Account credentials are verified.");