首页 > 代码库 > DesignPattern_Structural_Proxy

DesignPattern_Structural_Proxy

void Main(){    IShow proxy = new Proxy();    proxy.Show();}interface IShow{    void Show();}class Target:IShow{    public void Show(){}}class Proxy:IShow{    Target target = new Target();    public void Show(){        target.Show();    }}

 

DesignPattern_Structural_Proxy