Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/TypeConversion
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31391
Modified Files:
ResourceManagerConverter.cs
Log Message:
fixed SPRNET-861
Index: ResourceManagerConverter.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Core/TypeConversion/ResourceManagerConverter.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ResourceManagerConverter.cs 27 Aug 2007 13:57:34 -0000 1.4
--- ResourceManagerConverter.cs 20 Mar 2008 11:00:32 -0000 1.5
***************
*** 133,137 ****
{
Type globalResourcesType = TypeResolutionUtils.ResolveType(resourceName);
! PropertyInfo resourceManagerProperty = globalResourcesType.GetProperty("ResourceManager", BindingFlags.Public | BindingFlags.Static);
return (ResourceManager) resourceManagerProperty.GetValue(globalResourcesType, null);
}
--- 133,138 ----
{
Type globalResourcesType = TypeResolutionUtils.ResolveType(resourceName);
! // look both, NonPublic and Public properties (SPRNET-861)
! PropertyInfo resourceManagerProperty = globalResourcesType.GetProperty("ResourceManager", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);
return (ResourceManager) resourceManagerProperty.GetValue(globalResourcesType, null);
}
|