public void aa(TextWriter output, [Optional, DefaultParameterValue(false)] bool isExportMode)
{}
我在前面引用了using System.ComponentModel;
怎么还是报找不到DefaultParameterValue的命名空间的错啊
请大家帮帮忙啊
{}
我在前面引用了using System.ComponentModel;
怎么还是报找不到DefaultParameterValue的命名空间的错啊
请大家帮帮忙啊
System.Runtime.InteropServices
System.Runtime.InteropServices名称空间下的,应该就是这样了.
不过这种方法是用于有默认参数的语言的,比如VB.NET
{}中的[Optional, DefaultParameterValue(false)] bool isExportMode 是什么意思啊
在2003中不知道用什么方法可以代替它啊
请各位帮忙啊
谢谢大家了