I have a method that takes three parameters: List<Class1> source
, List<Class2) results
, and DateTime endDate
. I can see why the class coupling is four. However, it jumps to ten when I add this statement:
var warnings = from s in source
join r in results on s.Field1 equals r.Field1 into joined
from j in joined.DefaultIfEmpty( )
where j == null
select string.Format( "{0}{1}", A_CONSTANT, s.Field2 );
My questions:
- What are the six new classes that were introduced by the LINQ statement?
- And since ten is the upper limit of "good code," does this indicate that LINQ is not a good choice here?