OData / ODataSamples

Samples: For ODataLib, OData Web API, RESTier, etc.
http://odata.github.io/
Other
293 stars 222 forks source link

How do I get parameter inside value from its string representation in C#? #144

Open sureshmss opened 3 years ago

sureshmss commented 3 years ago

var str = "?$Expand=User($filter=substring(Name,1) eq 'First'&$Select=Name),Role($filter=contains(Name, 'admin' )), Group";

My input is User and need to get inside string like "$filter=substring(Name,1) eq 'First'&$Select=Name"

If pass input is Group it will return empty

How to achieve this functionality?