[英]CS0102 error while running ASP.NET application
我在 App_directory C# 代码文件中收到此错误,
CS0102: The type ClassName already contains a definition for 'mappingSource'
它指向线,
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
可能的错误是什么? 使用 vs 2008 和 .net 3.5
这意味着 class 'ClassName' 已经定义了一个名为 'mappingSource' 的 'member' (又名变量)。 所以只需为它选择另一个名称,它应该可以编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.