Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 了解推特器C的发展趋势#_C#_Wpf_Twitter_Twitterizer - Fatal编程技术网

C# 了解推特器C的发展趋势#

C# 了解推特器C的发展趋势#,c#,wpf,twitter,twitterizer,C#,Wpf,Twitter,Twitterizer,我正在寻找使用推特工具显示当前推特趋势。我正在使用下面的代码尝试生成10个当前趋势,但在运行代码时,它会显示所有10个MessageBox,但值为“Twitterizer.TwitterTrend”,而不是实际的趋势 TwitterResponse<TwitterTrendCollection> tr; tr = TwitterTrend.Trends(1); foreach (var tnds in tr.ResponseObject)

我正在寻找使用推特工具显示当前推特趋势。我正在使用下面的代码尝试生成10个当前趋势,但在运行代码时,它会显示所有10个MessageBox,但值为“Twitterizer.TwitterTrend”,而不是实际的趋势

TwitterResponse<TwitterTrendCollection> tr;
        tr = TwitterTrend.Trends(1);
        foreach (var tnds in tr.ResponseObject)
        {
            MessageBox.Show(tnds.ToString());
        }
twitter响应tr;
tr=推特趋势。趋势(1);
foreach(tr.ResponseObject中的var tnds)
{
Show(tnds.ToString());
}

如果要将对象转换为字符串,请尝试使用要使用的属性。
TwitterTrend
有一个属性
Name

这项工作:

 TwitterResponse<TwitterTrendCollection> tr = TwitterTrend.Trends(1);

            foreach (TwitterTrend tnds in tr.ResponseObject)
            {
                Console.WriteLine(tnds.Name);
            }
TwitterResponse tr=TwitterTrend.Trends(1); foreach(tr.ResponseObject中的TwitterTrend TND) { Console.WriteLine(tnds.Name); }
如果要将对象转换为字符串,请尝试使用要使用的属性。
TwitterTrend
有一个属性
Name

这项工作:

 TwitterResponse<TwitterTrendCollection> tr = TwitterTrend.Trends(1);

            foreach (TwitterTrend tnds in tr.ResponseObject)
            {
                Console.WriteLine(tnds.Name);
            }
TwitterResponse tr=TwitterTrend.Trends(1); foreach(tr.ResponseObject中的TwitterTrend TND) { Console.WriteLine(tnds.Name); }
我到底是怎么搞错的?!谢谢你的帮助!我怎么会弄错的?!谢谢你的帮助!