Please help!
 
I have an application that has a public class Data, this class has two 
static method Dictionary<String, ListItem> ListItems and Dictionary<String, 
XItem> Xitems.  I need compare these two list and update 
 Dictionary<String, XItem> Xitems with a date from Dictionary<String, 
ListItem> ListItems  here is my code:
 
Data.ListItems = Lists.ListItem.Get_ListItem()
Data.XListItems = Lists.XListItem.Get_XListItem()
 
 
var listObject = (from i in Data.Data.ListItems                    
                           select new { i.Value.Location, i.Value.
EffectiveDate})                    
                         .Distinct()                    
                         .ToArray(); 
 
var listMaster = (from r in Data.XListItems                    
                           select new { r.Value.LocationName, r.Value.
OpenDate})                    
                           .Distinct()                    
                           .ToArray(); 
 
var Common = from a1 in listObject
                         join a2 in listMaster on a1.location equal 
a2.locationName 
             
                         select new {A1 = a1, A2 = a2}; 
 
foreach (var c in common) 
{
    c.A2.OpenDate = c.A1.EffectiveDate;    //I ger the Property or indexer 
'AnonymousType#1.OpenDate' cannot be assigned to?     
}
 
Instead of using var type, what can I use.  I'm new and I have gotten this 
far and now I'm stuck.  Any help is greatly appreciated.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

--- 
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dotnetdevelopment+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to