regarding "Retrieving Property name from lambda expression" https://stackoverflow.com/a/672212/740651 I wondered whether its possible to save an property expression into a dictionary.
I don't want to save the PropertyInfo object it self into the dictionary, because the dictionary should be a static member variable. Therefore I only know the type of the source, but I dont got the instance of it. So i tried the following:
        Dictionary<int, Expression<Func<myfooclass, object>>> dic = 
    new Dictionary<int, Expression<Func<myfooclass, object>>>()
        {
                         { 1, <myfooclass, String> u => u.PropertieFoo },
                         { 2, <myfooclass, int> u => u.SomePropertie },
                         [...]
        };
Have anyone an idea how to solve this issue?
[Edit] I want to specify the properties type in the dictionary.
 
     
    