我的要求如下:如何刪除字符串中的某些字符發生後的子字符串?
input => "Employee.Addresses[].Address.City"
output => "Empolyee.Addresses[].City"
(Address is removed which is present after [].)
input => "Employee.Addresses[].Address.Lanes[].Lane.Name"
output => "Employee.Addresses[].Lanes[].Name"
(Address is removed which is present after []. and Lane is removed which is present after [].)
如何做到這一點在C#中?
什麼是 「立竿見影」?多個括號會發生什麼?問題根本不清楚 – trailmax