AE官方原文:
Casting in C#
In C#, the best method for casting between interfaces is to use the as operator. Using the as operator is a better coding strategy than a straight cast, because it yields a null on a conversion failure rather than raising an exception.
The first line in the following code example is a straight cast. This is an acceptable practice if you are certain the object in question implements both interfaces. If the object does not implement the interface you are attempting to get a handle to, .NET throws an exception. A safer model to use is the as operator, which returns a null if the object cannot return a reference to the desired interface.
个人理解:
接口就是包含了方法、属性定义的一个容器,本身不包含实现方法、给属性赋值的代码。
类继承了一个接口,该类就必须实现这个接口内定义声明的方法和函数。
所谓的接口跳转,是针对同一个类中继承的接口,对于该类实例化的对象,可以跳转同一个类中的不同的接口,使用不同接口内定义的方法和属性。