17 lines
376 B
C#
17 lines
376 B
C#
|
// CS0619-29: `Obsolete.Error' is obsolete: `Do not use it.'
|
||
|
// Line: 15
|
||
|
|
||
|
class Obsolete {
|
||
|
[System.Obsolete("Do not use it.", true)]
|
||
|
public static bool Error {
|
||
|
get {
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class MainClass {
|
||
|
public static void Main () {
|
||
|
System.Console.WriteLine (Obsolete.Error);
|
||
|
}
|
||
|
}
|