הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'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()
{
}
}
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.