Looking for Основи розробки програмного забезпечення на платформі Microsoft.NET test answers and solutions? Browse our comprehensive collection of verified answers for Основи розробки програмного забезпечення на платформі Microsoft.NET at do.ipo.kpi.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
root.Accept(new SizeVisitor());
Що виграє поєднання Visitor + Composite?
Яку проблему вирішує патерн Зберігач/Хранитель (Memento)
Яку проблему вирішує патерн Proxy
public interface IAsyncCommand
{
Task
ExecuteAsync();
}
Що слід врахувати при використанні IAsyncCommand
?LegacyLib.Process(new JsonToXmlAdapter(jsonInput));
Що відбувається тут?
public class RetryDecorator : IService
{
private readonly IService _inner;
private readonly int _max;
public RetryDecorator(IService inner, int max = 3) => (_inner, _max) = (inner, max);
public bool Execute()
{
for (int i = 0; i < _max; i++)
if (_inner.Execute()) return true;
return false;
}
}
Чому це Decorator, а не Proxy?
protected override IReport CreateReport(int id) =>
_cache.GetOrAdd(id, i => new HeavyReport(i));
Чим небезпечне кешування у фабричному методі?
var arr = new[] { 2, 4, 6 };
var allEven = arr.All(n => n % 2 == 0);
]]>JSON - це
public class Button : Colleague
{
public Button(IMediator m) : base(m) {}
public override void Click() => M.Notify(this, "click");
}
Чим відрізняється така реалізація від прямого виклику Input.Clear()?