From: <aye...@us...> - 2008-10-09 21:22:09
|
Revision: 3820 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=3820&view=rev Author: ayenderahien Date: 2008-10-09 21:21:58 +0000 (Thu, 09 Oct 2008) Log Message: ----------- minor Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs Modified: trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs 2008-10-09 18:31:36 UTC (rev 3819) +++ trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs 2008-10-09 21:21:58 UTC (rev 3820) @@ -68,7 +68,7 @@ he); } - if (typeof(IProxyFactoryFactory).IsAssignableFrom(pffc) == false) + if (pffc is IProxyFactoryFactory == false) { HibernateException he = new HibernateException(pffc.FullName + " does not implement " + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aye...@us...> - 2008-10-09 21:42:26
|
Revision: 3821 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=3821&view=rev Author: ayenderahien Date: 2008-10-09 21:42:15 +0000 (Thu, 09 Oct 2008) Log Message: ----------- reverting previous commit, should learn to _read_ the code. Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs Modified: trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs 2008-10-09 21:21:58 UTC (rev 3820) +++ trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs 2008-10-09 21:42:15 UTC (rev 3821) @@ -68,7 +68,7 @@ he); } - if (pffc is IProxyFactoryFactory == false) + if (typeof(IProxyFactoryFactory).IsAssignableFrom(pffc) == false) { HibernateException he = new HibernateException(pffc.FullName + " does not implement " + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2008-10-10 16:29:45
|
Revision: 3834 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=3834&view=rev Author: fabiomaulo Date: 2008-10-10 16:29:37 +0000 (Fri, 10 Oct 2008) Log Message: ----------- Minor (reformatted) Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs Modified: trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs 2008-10-10 16:20:24 UTC (rev 3833) +++ trunk/nhibernate/src/NHibernate/Bytecode/Lightweight/BytecodeProviderImpl.cs 2008-10-10 16:29:37 UTC (rev 3834) @@ -14,7 +14,7 @@ /// </remarks> public class BytecodeProviderImpl : IBytecodeProvider, IInjectableProxyFactoryFactory { - System.Type proxyFactoryFactory; + private System.Type proxyFactoryFactory; #region IBytecodeProvider Members @@ -37,7 +37,6 @@ } } - /// <summary> /// Generate the IReflectionOptimizer object /// </summary> @@ -45,8 +44,7 @@ /// <param name="setters">Array of setters</param> /// <param name="getters">Array of getters</param> /// <returns><see langword="null" /> if the generation fails</returns> - public IReflectionOptimizer GetReflectionOptimizer( - System.Type mappedClass, IGetter[] getters, ISetter[] setters) + public IReflectionOptimizer GetReflectionOptimizer(System.Type mappedClass, IGetter[] getters, ISetter[] setters) { return new ReflectionOptimizer(mappedClass, getters, setters); } @@ -62,17 +60,15 @@ { pffc = ReflectHelper.ClassForName(typeName); } - catch(HibernateException he) + catch (HibernateException he) { throw new HibernateException("Unable to load type '" + typeName + "' during configuration of proxy factory class.", - he); + he); } - if (typeof(IProxyFactoryFactory).IsAssignableFrom(pffc) == false) + if (typeof (IProxyFactoryFactory).IsAssignableFrom(pffc) == false) { - HibernateException he = - new HibernateException(pffc.FullName + " does not implement " + - typeof(IProxyFactoryFactory).FullName); + var he = new HibernateException(pffc.FullName + " does not implement " + typeof (IProxyFactoryFactory).FullName); throw he; } proxyFactoryFactory = pffc; @@ -80,5 +76,4 @@ #endregion } -} - +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |