Workspace.findSourceFileItem

tries to find source file in one of projects, returns found project source file item, or null if not found

class Workspace
findSourceFileItem
(
string filename
,
bool fullFileName = true
,
dstring projectName = null
)

Meta