✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class ColorAdapter
{
private readonly LegacyRgb _c;
public ColorAdapter(LegacyRgb c)=>_c=c;
public static implicit operator NewColor(ColorAdapter a)
=> new(a._c.R,a._c.G,a._c.B);
}
Ризик неявного оператора в Adapter: