✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class ValidationProxy : ICommand
{
private readonly ICommand _real;
public ValidationProxy(ICommand c)=>_real=c;
public void Execute(Order o)
{
if(!o.IsValid()) throw new Exception("bad");
_real.Execute(o);
}
}
Що тут Proxy, а не Adapter?