Convention based presenter discovery


Don't make me write attributes everywhere
Closed Mar 26, 2011 at 12:03 AM by tathamoddie


wrote Mar 3, 2010 at 8:34 PM

Code review of shelveset:

Remove all references to the word "control" in favour of "view". For example, GetPresenterClassNameFromControlTypeName should be GetPresenterTypeNameFromViewTypeName
presenterClassName should be presenterTypeName (there's no such thing as a class in reflection)
Cache the null result so that we don't perform the lookup every time for a control that just doesn't have a presenter
Change GenerateCandidatePresenterTypeNames to use yield return so that we only build as many names as we need to
GetPresenterClassNameFromControlTypeName needs to support "Handler" and "Service"

wrote Mar 3, 2010 at 8:40 PM

Code review of shelveset:
  1. Duplicate candidate names (the first two)

wrote Mar 3, 2010 at 9:25 PM

  1. Tracing