I have a class B which contains a string ‘b’. I also have a class A which contains a list of Bs (IList) called list.
I would like to find all distinct objects of A which contain B objects that contain the string ‘bla’ in the string ‘b’.
Is this possible?
Thanks.
Christian
Sure:
If the relationship is bidirectional (i.e. B has a reference to A), it’s even easier:
I assumed you meant B.b equals ‘bla’. If you meant bla is part of B.b, you can use the
LIKEoperator just like in SQL