Error decompile LINQ syntax...

Moderators: Luke Jefferson, Greg.Tillman, Clive Tong

Error decompile LINQ syntax...

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

I used version 7.1.0.143 ...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")
lopin123
 
Posts: 5
Joined: Sun Nov 07, 2010 6:48 pm

Return to .NET Reflector 7.0 Feedback

Who is online

Users browsing this forum: No registered users and 0 guests