コンパイラの警告 (レベル 1) CS1581
更新 : 2007 年 11 月
エラー メッセージ
XML コメントの cref 属性の戻り値の型が無効です。
メソッドの参照時に、無効な戻り値の型が原因のエラーが検出されました。
使用例
次の例では警告 CS1581 が生成されます。
// CS1581.cs
// compile with: /W:1 /doc:x.xml
/// <summary>help text</summary>
public class MyClass
{
/// <summary>help text</summary>
public static void Main()
{
}
/// <summary>help text</summary>
public static explicit operator int(MyClass f)
{
return 0;
}
}
/// <seealso cref="MyClass.explicit operator intt(MyClass)"/> // CS1581
// try the following line instead
// /// <seealso cref="MyClass.explicit operator int(MyClass)"/>
public class MyClass2
{
}