It would be nice to have a function with the flexibility of the ObjectTable.FindByUserString Method (with the ObjectEnumeratorSettings) that would allow the user to give two or more pairs of UserStrings to the filter.
Would it be at all possible to include this as a feature request?
It would prevent a lot of Marshalling between safe and unsafe code. If I do the loop in C#, then the unsafe underlying method will be called for every item.
See, for example, the code below, which is the RhinoCommon implementation. All filtering is done through the UnsafeNativeMethods.CRhinoDoc_LookupObjectsByUserText call.