I have class Foo, which derived from interface IFoo and IEnumerable
public class Foo:IFoo,IEnumerable
{
public decimal Count {...}
///etc...
}
How to call GetProperties(), that it's return only public properties of IEnumerable (not IFoo or this class)?