Filter operator for custom class?

Can this operator be implemented by custom class?
Filter operator - xmlList.(true), the expression inside parens is filter