更新:2007 年 11 月
错误消息
应输入对象、字符串或类类型试图将预定义的数据类型传递到
示例
下面的示例生成 CS1015:
// CS1015.cs
class Sample
{
static void Main()
{
try
{
}
catch(int) // CS1015, int is not derived from System.Exception
{
}
}
} | |