get look up a string given a func<T,object> param
Posted
by Sammy
on Stack Overflow
See other posts from Stack Overflow
or by Sammy
Published on 2010-05-26T14:27:06Z
Indexed on
2010/05/26
14:51 UTC
Read the original article
Hit count: 141
given this code
namespace GridTests
{
public class Grid<T>
{
IEnumerable<T> DataSource { get; set; }
IList<Column> Columns = new List<Column>();
class Column
{
public string DisplayText { get; set; }
Func<T, object> Rowdata { get; set; }
}
}
}
I need to be able to loop through the columns collection and get the Rowdata's object value using the DisplayText.
Thanks
© Stack Overflow or respective owner