这些代码中的哪一段更快?
if (obj is ClassA) {} if (obj.GetType() == typeof(ClassA)) {}
编辑:我知道他们不会做同样的事情.
c# rtti
c# ×1
rtti ×1