清泛IT社区

标题: 无法将方法组“Values”转换为非委托类型“System.Collections.Generic.List<XxxEntity>”。是否希望调用方 [打印本页]

作者: 清泛网    时间: 2015-11-25 10:29
标题: 无法将方法组“Values”转换为非委托类型“System.Collections.Generic.List<XxxEntity>”。是否希望调用方法?
出现此类编译错误,极有可能是把函数当成属性用了。
错误:xxx.Values;
正确:xxx.Values();

反之如果把属性当函数用则报编译错误:
(, 下载次数: 2677)


作者: zqp2013    时间: 2015-11-30 16:24
这个低级错误有时还真容易犯{:wabi:}
作者: ★龙◎    时间: 2015-12-01 09:11
沧海一粟 发表于 2015-11-30 16:24
这个低级错误有时还真容易犯

同感。。。




欢迎光临 清泛IT社区 (https://bbs.tsingfun.com/) Powered by Discuz! X3.3