コンパイラ エラー CS0619
'member' は使用されなくなりました: 'text'
クラス メンバーは Obsolete 属性でマークされているため、クラス メンバーが参照されるときにエラーが発行されます。
例
次の例では CS0619 が生成されます。
using System;
public class C
{
[Obsolete("Use NewMethod instead", true)] // generates an error on use
public static void OldMethod()
{
}
// this is the method you should be using
public static void NewMethod()
{
}
}
class MyClass
{
public static void Main()
{
C.OldMethod(); // CS0619
}
}