时得到一个错误我要做到以下几点:在Facebook开发工具包方法可选参数处理...我使用空
facebook.Schema.stream_data data = api.stream.get(null, new List<string> { page_id }, null, null, null, null);
,但我得到了以下错误:
Error 10 The best overloaded method match for 'facebook.stream.get(int, System.Collections.Generic.List, System.DateTime, System.DateTime, int, string)' has some invalid arguments Error 11 Argument '1': cannot convert from '
<null>
' to 'int'
有没有人有任何想法如何解决这个问题?
该方法是一个只需要一些参数的facebook函数的包装。所以,我想指定的唯一参数是page_id ...除了使用C#4之外,还有另一种方法可以做到这一点吗? – rksprst 2009-11-04 17:45:13
是的 - 只需找出您不想使用的参数的默认值并将其传入即可。 – 2009-11-04 18:56:57