我正在尝试使用TypeScript中的列表在C#中执行与LINQ类似的操作 基本上,我正在尝试做这样的事情:
numberOfObjectsSatisfyingConstraint: number =
this.objectsToSearch.(/* This is the part I can't figure out. */).length;
答案 0 :(得分:1)
我使用以下方法解决了这个问题:
`this.objectsToSearch.filter(s => s.<condition goes here>).length;`