Last post Apr 02, 2013 05:39 AM by Kelmen
Mar 27, 2013 09:28 PM|asppick|LINK
Scenario: There will three seperate solutions projects, projecta and projectp calls projectunique for processing.
From projecta sends List<employee> and projectb sends List<worker> to projectunique.
I want to define a method in projectunique which should be smartenough to proess the data based on the caller. i.e I want to define a method which does NOT reference (or contain) employee or worker class as a parameter. I want a generic
parameter which handles both.
Can we do something with reflection? I may not be clear with my explanation, hope somebody gets it.. :)
Mar 28, 2013 03:03 AM|kidshaw|LINK
Mar 31, 2013 08:27 PM|Xequence|LINK
abstract factory with generics.
Apr 02, 2013 05:39 AM|Kelmen|LINK
you don't need reflection.
you can look into using interface, or the generic.
interface should be good enough, and more easy to be maintain.
generic seems quite interesting, but there are lot of restriction/limitation over general oop.