Poznámka
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete sa skúsiť prihlásiť alebo zmeniť adresáre.
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete skúsiť zmeniť adresáre.
'member' is obsolete: 'text'
A class member was marked with the Obsolete attribute, such that a warning will be issued when the class member is referenced. For more information, see Assembly level attributes.
The following sample generates CS0618:
// CS0618.cs
// compile with: /W:2
using System;
public class C
{
[Obsolete("Use newMethod instead", false)] // warn if referenced
public static void m2()
{
}
public static void newMethod()
{
}
}
class MyClass
{
public static void Main()
{
C.m2(); // CS0618
}
}
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.