Module Dependencies - String Literals

Dec 12, 2008 at 12:50 AM
I was wondering why the choice was made to use strings to specify module dependencies rather than using types.

eg.

catalog.AddModule(

typeof (MarketModule))

 

.AddModule(

typeof (NewsModule))

 

.AddModule(

typeof (WatchModule), "MarketModule")

 

.AddModule(

typeof (PositionModule), "MarketModule", "NewsModule");


-- I would think that it would make more sense to pass in types for your depencies to gain the benefit of compiile time type checking.