class MyFilter : ICustomFilter { public bool IsMatching(StorableObject obj) { Function f = obj as Function; if (f != null) { return (f.IsMainFunction && f.SubFunctions.Length != 0); } return false; } } Project proj;//a valid project DMObjectsFinder finder = new DMObjectsFinder(proj); Function[] functions = finder.GetFunctionsWithCF(new MyFilter()); //now as a result we have main functions having at least one subfunction.
Name | Description | |
---|---|---|
IsMatching | This method should be overridden in order to implement the filter. |