根据这个StackOverflow问题的被接受的答案,
在Windows Store应用程序中,System.Type operator ==不可用。
我该如何完全复制
System.Type.Equals
方法和System.Type operator ==
之间存在差异:a runtime type (represented by the internal type RuntimeType), managed by
the CLR is not always the same as a Type, which can be extended. Equals
will check the underlying system type, whereas == will check the type itself.
在Windows Store应用程序中,System.Type operator ==不可用。
我该如何完全复制
System.Type operator ==
的功能以在Windows Store应用程序中使用?或者说,System.Type
的特定等式运算符功能在Windows Store应用程序中不相关吗?
Equals
方法,其中它接受的两个参数是该类型的实例。在静态方法中,您还需要不要调用虚拟的Equals
实例方法,因为如果被覆盖,您将失去所需的行为。 - Servy