ju2pom / EverythingNet

A .fluent NET library for the great Everything Search library from voidtools
MIT License
113 stars 25 forks source link

Direct use of query syntax using reflection #9

Open 1172465532 opened 2 months ago

1172465532 commented 2 months ago
Everything ET = new Everything();
ET.ResulKind=ResultKind.FilesOnly;
ET.SortKey = SortingKey.DateModifiedDescending;
IQuery query = ET.Search();
Type T=query.Not.GetType();
IQuery result = ((IQuery)T.GetConstructors()[0].Invoke(new object[]{ET,query,@"ext:PDF  size:>100000  !$  !D:\"}));
var final= result.Name;