Error decompile LINQ syntax...

Error decompile LINQ syntax...

Postby lopin123 » Wed Sep 07, 2011 10:16 am

I used version ...but why this code cannot resolve by refelector..Pls help me...

Code: Select all
private FileStorageFolder GetCapsuleContentFolder(FileStorageDataContext db)
    IQueryable<FileStorageFolder> source = from dbFolder in db.FileStorageFolders
        where (dbFolder.ParentID == null) && (dbFolder.Purpose == reportFolderPurpose)
        select dbFolder into dbFolder
        join dbSubFolder in db.FileStorageFolders on dbFolder.ID equals dbSubFolder.ParentID into dbSubFolder
        where (dbSubFolder.Purpose == capsulelayoutFolderPurpose) && (dbSubFolder.FolderName == capsuleReportContent)
        select dbSubFolder;
    Instrument.Assert(source.Count<FileStorageFolder>() == 1);
    return source.Single<FileStorageFolder>();


error on second "where" syntax...("Ambigous Invocation")
Posts: 5
Joined: Sun Nov 07, 2010 5:48 pm

Return to .NET Reflector 7.0 Feedback

Who is online

Users browsing this forum: No registered users and 0 guests