All pastes #458237 Raw Edit

Stuff

public text v1 · immutable
#458237 ·published 2007-04-25 19:54 UTC
rendered paste body
namespace CFERDEV.Generics
{
    public class DernierEnregistrement<T> where T: IDernierEnregistrement
    {
        private int LastIndex(Table<T> table)
        {
            return (from V in table select V.ID).First();
        }
    }
    public interface IDernierEnregistrement { int ID(); }
}

Error	1	The type arguments for method 'System.Linq.Queryable.Select<TSource,TResult>(System.Linq.IQueryable<TSource>, System.Linq.Expressions.Expression<System.Linq.Func<TSource,TResult>>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.	C:\Documents and Settings\berdav\Bureau\CFERDEV\CFERDEV\CFERDEV\CFER_Generic.cs	20	37	CFERDEV