No interface and the T is an object. Basically it is a DTO.

The code is quite significant to post. The gist however is like this.

class whatever
{

List<CustomObject> list;

public void method1()
{
     list = GetCustomListFromDataLayer();

     CustomObject result = FindInList(FileName);
     //result is missing one property. It is a standard int public
property with auto get/set.
}

private CustomObject FindInList(string fileName)
{

     //All objects in list are fully populated at this point
     return list.Find(file => file.FileName == fileName);
}

Thank you,

Ryan
On Jan 12, 5:36 am, denism <[email protected]> wrote:
> Also, is your T a strong type or "object"?
>
> On Jan 12, 12:01 pm, Jamie Fraser <[email protected]> wrote:
>
>
>
> > Can you post your code? Might be an obvious theory - but you aren't
> > using an interface somewhere are you?
>
> > On Tue, Jan 12, 2010 at 2:11 AM, rbr <[email protected]> wrote:
> > > Has anybody experienced an issue where they have a generic list of
> > > objects, do a find (in my instance using a lambda expression) and the
> > > returned object is missing one or more of the properties that the
> > > object contains in the List? I am getting an object with all but one
> > > int property set. I'm at a loss. any help would be greatly
> > > appreciated.
>
> > > TIA
>
> > > rbr- Hide quoted text -
>
> - Show quoted text -

Reply via email to