IsSubclassOf 可是判断类继承类
那 怎么半段一个类,继承了一个接口!

解决方案 »

  1.   

    bool IsInherintance = type.GetInterface("IhistoryItem") != null ? true:false; 我觉得挺好!!!!!!!!你真快!  谢谢俄! 我自己都完 le!
      

  2.   

    (is 你的接口名) 我不太会, A.class    B.interface  谁给我写一个 is example!
      

  3.   

    Typeof( 类 ) is  接口
      

  4.   

    楼主可以参考下面方法:
    System.Type t=a.GetType().GetInterface(B,true);
    if (t!=null)
    说明是继承接口。