Код: Выделить всё
CS8765: Nullability of type of parameter 'value' doesn't match overridden member (possibly because of nullability attributes).
Код: Выделить всё
///
/// Gets or sets the font of the text
///
[Browsable(true)]
public override Font Font
{
get => base.Font;
set
{
base.Font = value;
AdjustSize();
}
}
Код: Выделить всё
CS8764: Nullability of return type doesn't match overridden member (possibly because of nullability attributes).
Не игнорируя это, как исправить исходное предупреждение?
Подробнее здесь: https://stackoverflow.com/questions/783 ... en-propert
Мобильная версия