.NET のリストアイテムのプロパティにアクセスするとエラーとなるのはなぜですか?
古いコメントを表示
リストアイテムのプロパティに次のように割り当てようとすると、
>> list.Item(0).prop = 1
次のエラーが表示されます:
The name 'Item' is not an accessible property for an instance of class
'System.Collections.Generic.List<ClassLibrary1*Example1>'.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Microsoft .NET 入門 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!