【发布时间】:2011-08-18 22:27:15
【问题描述】:
我有刚刚反编译的旧代码(源代码丢失了,但我们拥有它)。
我现在正在尝试重新编译它,但出现以下错误:
Error 1 'System.Data.SqlTypes.SqlBoolean.operator true(System.Data.SqlTypes.SqlBoolean)': cannot explicitly call operator or accessor C:\NCESTableGenerator\NCESTableGenerator\db\OutputTableDAO.cs 89 32 NCESTableGenerator
关于以下代码:
if (SqlBoolean.op_True(reader.GetSqlInt32(0) == 1))
和
Error 3 Cannot convert type 'bool' to 'sbyte' C:\NCESTableGenerator\NCESTableGenerator\Formatter.cs 172 30 NCESTableGenerator
关于以下代码:
public static string GetEstimateFloatStr(double data, int sn, int num, ref bool roundedZero, ref bool lowN)
{
if (sn <= 30)
{
sbyte num1 = (sbyte) lowN;
lowN = true;
return "‡";
有什么想法吗?
【问题讨论】:
-
反编译不会总是给你返回可以重新编译的代码。
标签: c# asp.net visual-studio assemblies compilation