Пример #1
0
    public ISomeEntity Display(ISomeEntity entity)
    {
        BDisplayEntity bEntity = entity as BDisplayEntity;

        if (bEntity == null)
        {
            throw new ArgumentException("Wrong type");
        }
        //Do whatever happens when you convert parameter entity into a
        //"response" BDisplayEntity. I'm just returning a new
        //BDisplayEntity to make it compile for me
        return(new BDisplayEntity());
    }
Пример #2
0
    public ISomeEntity Display(ISomeEntity entity)
    {
        ADisplay disp = new ADisplay();

        return(disp.ADisplay(entity));
    }
Пример #3
0
    public ISomeEntity Display(ISomeEntity entity)
    {
        BDisplay disp = new BDisplay();

        return(disp.BDisplay(entity));
    }