4
例如操作結果鑄造,爲什麼使用「爲」鑄造對象爲null,與C#動態
比方說group.SupportedProducts爲[「測試」,「你好」,「世界」]
var products = (string[]) group.SupportedProducts;
結果正確地是一個字符串數組,它包含上述3個要素中的「產品」 - 「測試」,「你好」和「世界」
然而,
var products= group.SupportedProducts as string[];
結果產品爲空。
有趣的問題 – sehe 2013-02-15 23:16:21
@zerkms這意味着你不同意第一條語句「作品」(我恨那個動詞題) – 2013-02-15 23:16:51
@Shmiddty數組是不是基本類型吧? – 2013-02-15 23:18:08