Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16844/NHibernate/Impl
Modified Files:
WrapVisitor.cs
Log Message:
reducing number of casts per FxCop recommendation.
Index: WrapVisitor.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/WrapVisitor.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WrapVisitor.cs 7 Feb 2005 01:34:41 -0000 1.2
--- WrapVisitor.cs 14 Feb 2005 03:31:51 -0000 1.3
***************
*** 14,18 ****
private static readonly ILog log = LogManager.GetLogger( typeof( WrapVisitor ) );
! private bool _substitute = false;
public bool IsSubstitutionRequired
--- 14,19 ----
private static readonly ILog log = LogManager.GetLogger( typeof( WrapVisitor ) );
! // set to false by default by the framework
! private bool _substitute;
public bool IsSubstitutionRequired
***************
*** 27,33 ****
protected override object ProcessCollection(object collection, PersistentCollectionType collectionType)
{
! if( collection is PersistentCollection )
{
- PersistentCollection coll = (PersistentCollection)collection;
if( coll.SetCurrentSession( Session ) )
{
--- 28,34 ----
protected override object ProcessCollection(object collection, PersistentCollectionType collectionType)
{
! PersistentCollection coll = collection as PersistentCollection;
! if( coll!=null )
{
if( coll.SetCurrentSession( Session ) )
{
|