日期:2014-05-19  浏览次数:20484 次

DefaultParameterValue的问题
public   void   aa(TextWriter   output,   [Optional,   DefaultParameterValue(false)]   bool   isExportMode)
{

}
我在前面引用了using   System.ComponentModel;
怎么还是报找不到DefaultParameterValue的命名空间的错啊
请大家帮帮忙啊

------解决方案--------------------
是这个空间的:
System.Runtime.InteropServices
------解决方案--------------------
如果是vs.net 2003,那c#是不支持默认参数的