jeudi 15 mars 2018

How can I find a specific element in a List

I know, maybe you're thinking in this question How can I find a specific element in a List<T>?

It's not too similar, well, my case is this:

I have a method, who recives a <T>

Like this:

public static List<T> SPReader<T>() where T : new()

now, I have a model:

var model = new List<T>();

if, I dinamically get the properties with:

how I can update the value of an specific property???

I already tried with:

model.SetPropertyValue("abc", temp);

but, is not working.





Aucun commentaire:

Enregistrer un commentaire