The type or namespace name 'DataSetExtensions' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

北慕城南 提交于 2019-11-29 13:53:04

System.Data.DataSetExtensions is an assembly, not a namespace. You just need to add a reference to System.Data.DataSetExtensions.dll (as you say you already have) and then a using directive for the System.Data namespace:

using System.Data;

That will pull in all the extension methods in the classes in that namespace, e.g. DataRowExtensions.

When you're looking in documentation, always be careful about the difference between namespaces and assembly names - they're often the same, but they're logically independent.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!