我有旧的代码,我只是反编译(源丢失,但我们拥有它)。在C#中编译SQL程序集错误的旧代码
现在我想重新编译,但有这些误差修改:
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 "‡";
任何想法?
反编译并不总能让你回到只能重新编译的代码。 –
是真的,我该如何解决这个问题? – cdub