✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class DialogWithDI : Dialog
{
private readonly IServiceProvider _sp;
public DialogWithDI(IServiceProvider sp) => _sp = sp;
protected override IButton CreateButton() => _sp.GetRequiredService
();
}
Чим ця реалізація відрізняється від класичної?