Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对这个说法有疑问:
SubTransaction subTransaction = new SubTransaction(doc); if (subTransaction.Start() == 1)
根据错误消息,问题出在if语句上。试试这个:
if
if (subTransaction.Start() == TransactionStatus.Started) { ... }
int在 .NET 中,如果要将枚举值与int. 而且您可能无论如何都不想这样做,因为那只会用幻数掩盖值。
int