public AttributeCollection(string objectUrn) : this(new Uri(objectUrn)) { }
public AttributeCollection(Uri objectUrn) : base(() => Service.FindAllByObjectUrn(objectUrn).ToList())
{
ObjectUrn = objectUrn;
}
The lambda is throwing the error in the subject. The strange part thing is, prior to the conversion to Visual Studio 2010 from Visual Studio 2008, the code compiles fine. It's still targeting .NET framework 3.5. I don't understand what possibly could have
changed from migrating to 2010 that would affect this. Any pointers?
Member
24 Points
176 Posts
Cannot convert lambda expression to type System.Collections.Generic.ICollection<TObject> because...
Jun 24, 2014 11:34 AM|getoutofmylaboratory|LINK
I have the following:
The lambda is throwing the error in the subject. The strange part thing is, prior to the conversion to Visual Studio 2010 from Visual Studio 2008, the code compiles fine. It's still targeting .NET framework 3.5. I don't understand what possibly could have changed from migrating to 2010 that would affect this. Any pointers?
All-Star
26071 Points
5892 Posts
Re: Cannot convert lambda expression to type System.Collections.Generic.ICollection<TObject> beca...
Jun 24, 2014 01:16 PM|markfitzme|LINK
Try adding the using: