From 145499bd8b8880d6fde4e4c0b3c8576953fffd0f Mon Sep 17 00:00:00 2001 From: hartvig Date: Fri, 27 Aug 2010 09:48:01 +0000 Subject: [PATCH] Fixes 28514 [TFS Changeset #76539] --- umbraco/businesslogic/Utils/TypeFinder.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/umbraco/businesslogic/Utils/TypeFinder.cs b/umbraco/businesslogic/Utils/TypeFinder.cs index c113aedd1d..8a0abd9ac6 100644 --- a/umbraco/businesslogic/Utils/TypeFinder.cs +++ b/umbraco/businesslogic/Utils/TypeFinder.cs @@ -56,6 +56,11 @@ namespace umbraco.BusinessLogic.Utils foreach (string type in strTypes) types.Add(Type.GetType(type)); + // also add types from app_code + foreach (Type type in System.Reflection.Assembly.Load("App_Code").GetTypes()) + types.Add(type); + + return types.FindAll(OnlyConcreteClasses(typeof(T), onlyConcreteClasses)); } else