Napomena
Za pristup ovoj stranici potrebna je autorizacija. Možete se pokušati prijaviti ili promijeniti direktorije.
Za pristup ovoj stranici potrebna je autorizacija. Možete pokušati promijeniti direktorije.
'member' : new protected member declared in sealed class
A sealed class cannot introduce a protected member because no other class will be able to inherit from the sealed class and use the protected member.
The following sample generates CS0628:
// CS0628.cs
// compile with: /W:4
sealed class C
{
protected int i; // CS0628
}
class MyClass
{
public static void Main()
{
}
}
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.