EverythingNet icon indicating copy to clipboard operation
EverythingNet copied to clipboard

Direct use of query syntax using reflection

Open 1172465532 opened this issue 1 year ago • 0 comments

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;

1172465532 avatar Aug 31 '24 00:08 1172465532