I want to check that a given ITypeMember or IParameter is part of a compiled project within the solution (i.e. no external (library) code).
My current two approaches are:
bool isOwnCode = element.GetSourceFiles().Count > 0;
bool isOwnCode = element.GetDeclarations().Count > 0;
a) Are they too restrictive/unrestrictive?
b) Is there a better alternative regarding performance/which version should be preferred?