除非纯粹的类型检查,否则使用as转换比is快// is 转换object obj = GetReferent();if (obj is SomeType){ SomeType st = (SomeType)obj; ..}// as 转换SomeType st = obj as SomeType;if (st != null){ ..} 转载于:https://www.cnblogs.com/netflu/archive/2006/06/07/419620.html