Example #1
0
        // GET: Adapter
        public ActionResult Index()
        {
            ArrayCollAdaptee <string> array = new ArrayCollAdaptee <string>();

            array.AddItemtoCollection("Item 1");
            array.AddItemtoCollection("Item 2");



            ConverterAdapter <string> convertor = new ConverterAdapter <string>(array);

            List <string> listOfStrings = convertor.Convert();

            return(View());
        }
 public ConverterAdapter(ArrayCollAdaptee <T> arrayCollectionAdaptee)
 {
     _arrayCollection = arrayCollectionAdaptee;
 }