更新:2007 年 11 月
错误消息
“type”类型的参数不适用于 DefaultValue 属性对于类型为对象的参数,
示例
下面的示例生成 CS1910。
复制代码 | |
---|---|
// CS1910.cs // compile with: /target:library using System.Runtime.InteropServices; public interface MyI { void Test([DefaultParameterValue(typeof(object))] object o); // CS1910 } |