我有类 Foo,它派生自接口 IFoo 和 IEnumerable
public class Foo:IFoo,IEnumerable
{
public decimal Count {...}
///etc...
}
如何调用 GetProperties(),它只返回 IEnumerable 的公共属性(不是 IFoo 或此类)?
我有类 Foo,它派生自接口 IFoo 和 IEnumerable
public class Foo:IFoo,IEnumerable
{
public decimal Count {...}
///etc...
}
如何调用 GetProperties(),它只返回 IEnumerable 的公共属性(不是 IFoo 或此类)?