如何使用LINQ代替此代码?
foreach (var shape in Vms_Drawing.Shapes) { if(shape.ShapeType == "Vms_Rectangle") { LocalCount++; } }
c# linq foreach
c# ×1
foreach ×1
linq ×1