我想实现一个泛型方法,它根据对象拥有的接口返回一个包含的值。但是我不知道该怎么做,我研究了typeof和interfaceof,但不确定如何实现它来满足下面的逻辑。export interface Animal {}
model: string;// return data.name;
// if data has VE
我是新来的WPF,看起来我也不完全理解C#。下面是我很难理解的代码://this one is easy: I create new collection for objects of class Person and I call it PersonsCollection
ICollectionView PersonsView = Collec