Пример #1
0
 public IProtocolType1 createProtocolType1()
 {
     if (nowUserProtocol == null)
     {
         nowUserProtocol = new ProtocolType1();
     }
     return(nowUserProtocol);
 }
Пример #2
0
    private void initProtocolType()
    {
        IProtocolFactory factory = new ProtocolFactory();

        iProtocol = factory.createProtocolType1();
    }