Is it exists any simple solution which will allow me solve next problem using LINQ.
e.g. I have Dictionary<string,int> paths;
which contains following elements
<"/abc/12", 13>
<"/test/abc", 22>
<"/stack/overflow/com", 43>
<"/stack/exception", 4>
and I have a List<string> filter which contains following elements
"/abc"
"/stack/overflow"
And I need to delete those elements from paths dictionary which key doesn’t start from the any string provided in filter list. So I should get following results:
<"/abc/12", 13>
<"/stack/overflow/com", 43>
You can use Linq:
Demo