我在 ListView 类上看到了这个签名:
public ListView..::.ListViewItemCollection Items { get; }
当我看到那个时,“什么?!”
我搜索了“dot dot colon colon dot”和“..::.”在谷歌上没有结果。
最佳答案
那不是 C#;那就是 JScript。在 C# 中,它将是:
public ListView.ListViewItemCollection Items { get; }
有点不同,因为 ListViewItemCollection
是 ListView
的内部类。
我猜你看到了 ListView.Items Property (System.Windows.Forms) .
如果您查看所有其他语言的列表,它们都使用 JScript 语法列出。您发现了文档错误。
关于c# - C#中 "..::."是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/316520/