logo

Crowdly

Browser

Add to Chrome

public class ValidationProxy : ICommand { private readonly ICommand _real; ...

✅ 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?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome