時得到一個錯誤我要做到以下幾點:在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