我在用着
Decimal.Round(decimal d)
MSDN 说它可以抛出OverflowException
https://msdn.microsoft.com/en-us/library/k4e2bye2(v=vs.110).aspx
我不确定这怎么会发生。我尝试使用 ilSpy 查看实现,直到外部实现:
// decimal
[SecurityCritical]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void FCallRound(ref decimal d, int decimals);
有人知道什么输入会引发此异常吗?