Hi,
"André Nobre" <no@spam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
Depending on the type of my user Iīll need to instanciate a class. In my
architeture, I donīt want to use Interfaces in this case (and it wonīt
have any meaning if I use it..) and I donīt want to agrupate all atributes
from one type and othes in the same class, and just use a some of them.
This is a common escenario for a Factory pattern. depending of some criteria
you instantiate a different type.
Contrary to your opinion though you should use a common interface. In case
that some types use functionality that others dont you should always ask if
a particular instance implement the expected interface using the "as"
operator.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation