У меня есть требование следующим образом:Как удалить подстроку после появления определенных символов в строке?
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