【发布时间】:2012-12-24 08:43:28
【问题描述】:
当我构建我的项目时,VC# 说不允许使用默认参数说明符。它把我带到了这段代码:
public class TwitterResponse
{
private readonly RestResponseBase _response;
private readonly Exception _exception;
internal TwitterResponse(RestResponseBase response, Exception exception = null)
{
_exception = exception;
_response = response;
}
我的错误可能是什么?
【问题讨论】:
-
错误信息到底是什么?哪条线?
-
您使用的是哪个版本的 Visual Studio 和哪个 .NET 框架? this 有帮助吗?
-
如果有用,您应该接受答案!或发表评论以查看答案的问题所在!
标签: c# .net-3.5 default-parameters