最近在阅读一个项目的代码,看到很多类似这样的代码: public static void HandleException(Exception ex,ICommunicationObject channel)
{
Guard.ArgumentNotNull(ex, "ex");
Guard.ArgumentNotNull(channel, "channel");
...
}想知道那两行代码是什么意思,起到什么作用?谢谢!
{
Guard.ArgumentNotNull(ex, "ex");
Guard.ArgumentNotNull(channel, "channel");
...
}想知道那两行代码是什么意思,起到什么作用?谢谢!
如果参数为 null会怎样呢? 作了哪些处理?