The operators as and is
take classes and instance objects as operands; as operates on interfaces
as well. For more information, see Classes
and objects and Object
interfaces.
The relational operators = and <> also operate on classes. See Relational operators.
运算符as和is以类和实例对象作为操作数;as运算符还可以作用于接口。更多信息见类和对象、对象接口。
关系运算符 = 和 <> 也可以作用于类,见关系运算符。