Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12537
Modified Files:
FilterImpl.cs
Log Message:
fixing xml comments and letting ReSharper do reformatting
Index: FilterImpl.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/FilterImpl.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** FilterImpl.cs 31 Oct 2004 04:31:00 -0000 1.8
--- FilterImpl.cs 31 Dec 2004 19:51:30 -0000 1.9
***************
*** 1,24 ****
- using System;
using System.Collections;
-
using NHibernate.Engine;
using NHibernate.Type;
! namespace NHibernate.Impl
{
-
/// <summary>
/// Implementation of the <see cref="IQuery"/> interface for collection filters.
/// </summary>
! internal class FilterImpl : QueryImpl
{
private object collection;
! public FilterImpl(string queryString, object collection, ISessionImplementor session) : base(queryString, session)
{
this.collection = collection;
}
! public override IEnumerable Enumerable()
{
//TODO: see if there is a better way to implement
--- 1,28 ----
using System.Collections;
using NHibernate.Engine;
using NHibernate.Type;
! namespace NHibernate.Impl
{
/// <summary>
/// Implementation of the <see cref="IQuery"/> interface for collection filters.
/// </summary>
! internal class FilterImpl : QueryImpl
{
private object collection;
! /// <summary>
! ///
! /// </summary>
! /// <param name="queryString"></param>
! /// <param name="collection"></param>
! /// <param name="session"></param>
! public FilterImpl( string queryString, object collection, ISessionImplementor session ) : base( queryString, session )
{
this.collection = collection;
}
! /// <summary></summary>
! public override IEnumerable Enumerable()
{
//TODO: see if there is a better way to implement
***************
*** 32,36 ****
}
! public override IList List()
{
//TODO: see if there is a better way to implement
--- 36,41 ----
}
! /// <summary></summary>
! public override IList List()
{
//TODO: see if there is a better way to implement
***************
*** 44,66 ****
}
! private IType[] TypeArray()
{
IList typeList = Types;
int size = typeList.Count;
! IType[] result = new IType[size+1];
! for (int i=0; i<size; i++)
! result[i+1] = (IType) typeList[i];
return result;
}
! private object[] ValueArray()
{
IList valueList = Values;
int size = valueList.Count;
! object[] result = new object[size+1];
! for (int i=0; i<size; i++)
! result[i+1] = valueList[i];
return result;
}
}
! }
--- 49,75 ----
}
! private IType[ ] TypeArray()
{
IList typeList = Types;
int size = typeList.Count;
! IType[ ] result = new IType[size + 1];
! for( int i = 0; i < size; i++ )
! {
! result[ i + 1 ] = ( IType ) typeList[ i ];
! }
return result;
}
! private object[ ] ValueArray()
{
IList valueList = Values;
int size = valueList.Count;
! object[ ] result = new object[size + 1];
! for( int i = 0; i < size; i++ )
! {
! result[ i + 1 ] = valueList[ i ];
! }
return result;
}
}
! }
\ No newline at end of file
|