I would like to be able to do something like the following:
var MyTable = new Table();
string name = MyTable.Name;
IEnumerable<String> rows = MyTable.Rows;
var MyTableGeneric = new Table<MyType>();
string name = MyTableGeneric.Name;
IEnumerable<MyType> rows = MyTableGeneric .Rows;
Something like this will be a lot:
http://img81.imageshack.us/img81/427/diagramcm3.jpg
or it will be better:
http://img301.imageshack.us/img301/4136/presentation1nh9.jpg
Sorry if it's hard to understand what I'm trying to get to, basically I have two objects that will share comman properties, except that the string collections will be universal. I would like to do this in the cleanest way.
Sorry for my crappy diagrams made at powerpoint :)
source
share