在.net framework2.0中使用扩展方法
添加以下定义即可
namespace System.Runtime.CompilerServices{ public class ExtensionAttribute : Attribute { }}