判断两个类是否是同一个类

这是在log4net源码中,用的一种方法

         
    
PatternConverter---是一个类
    
type是一个参数。System.Type
            if (!typeof(PatternConverter
).IsAssignableFrom(type))
      
原文地址:https://www.cnblogs.com/liangwei389/p/1386219.html