Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Proxy
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6703
Modified Files:
NHibernateProxyHelper.cs ProxyGeneratorFactory.cs
Log Message:
fixing xml comments and letting ReSharper do reformatting
Index: NHibernateProxyHelper.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Proxy/NHibernateProxyHelper.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** NHibernateProxyHelper.cs 16 Dec 2004 21:51:48 -0000 1.3
--- NHibernateProxyHelper.cs 31 Dec 2004 22:08:37 -0000 1.4
***************
*** 1,4 ****
- using System;
-
namespace NHibernate.Proxy
{
--- 1,2 ----
***************
*** 10,14 ****
public sealed class NHibernateProxyHelper
{
! private NHibernateProxyHelper()
{
//can't instantiate
--- 8,12 ----
public sealed class NHibernateProxyHelper
{
! private NHibernateProxyHelper()
{
//can't instantiate
***************
*** 23,31 ****
/// of the Proxied object.
/// </returns>
! public static LazyInitializer GetLazyInitializer(INHibernateProxy proxy)
{
LazyInitializer li = ProxyGeneratorFactory.GetProxyGenerator().GetLazyInitializer( proxy );
return li;
!
}
--- 21,29 ----
/// of the Proxied object.
/// </returns>
! public static LazyInitializer GetLazyInitializer( INHibernateProxy proxy )
{
LazyInitializer li = ProxyGeneratorFactory.GetProxyGenerator().GetLazyInitializer( proxy );
return li;
!
}
***************
*** 36,48 ****
/// <param name="obj">The object to get the type of.</param>
/// <returns>The Underlying Type for the object regardless of if it is a Proxy.</returns>
! public static System.Type GetClass(object obj)
{
! if (obj is INHibernateProxy)
{
! INHibernateProxy proxy = (INHibernateProxy) obj;
LazyInitializer li = NHibernateProxyHelper.GetLazyInitializer( proxy );
return li.PersistentClass;
}
! else
{
return obj.GetType();
--- 34,46 ----
/// <param name="obj">The object to get the type of.</param>
/// <returns>The Underlying Type for the object regardless of if it is a Proxy.</returns>
! public static System.Type GetClass( object obj )
{
! if( obj is INHibernateProxy )
{
! INHibernateProxy proxy = ( INHibernateProxy ) obj;
LazyInitializer li = NHibernateProxyHelper.GetLazyInitializer( proxy );
return li.PersistentClass;
}
! else
{
return obj.GetType();
***************
*** 50,52 ****
}
}
! }
--- 48,50 ----
}
}
! }
\ No newline at end of file
Index: ProxyGeneratorFactory.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Proxy/ProxyGeneratorFactory.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProxyGeneratorFactory.cs 16 Dec 2004 21:51:48 -0000 1.3
--- ProxyGeneratorFactory.cs 31 Dec 2004 22:08:37 -0000 1.4
***************
*** 1,3 ****
! using System;
namespace NHibernate.Proxy
--- 1,3 ----
! using log4net;
namespace NHibernate.Proxy
***************
*** 8,16 ****
public sealed class ProxyGeneratorFactory
{
! private static readonly log4net.ILog log = log4net.LogManager.GetLogger( typeof(ProxyGeneratorFactory) );
private static IProxyGenerator _generator = new CastleProxyGenerator();
!
! public static IProxyGenerator GetProxyGenerator()
{
//TODO: make this read from a configuration file!!! At this point anybody
--- 8,17 ----
public sealed class ProxyGeneratorFactory
{
! private static readonly ILog log = LogManager.GetLogger( typeof( ProxyGeneratorFactory ) );
private static IProxyGenerator _generator = new CastleProxyGenerator();
!
! /// <summary></summary>
! public static IProxyGenerator GetProxyGenerator()
{
//TODO: make this read from a configuration file!!! At this point anybody
***************
*** 19,21 ****
}
}
! }
--- 20,22 ----
}
}
! }
\ No newline at end of file
|