How can I make distinct search for collection with code????
The question is not clear. Please provide more details.
by defination collections represent unique rows, so distinct doesn't apply. distinct only works on typed/dynamic lists and projections.
you could use projection to get a distinct list and project it onto an entity collection.