All pastes #2128404 Raw Edit

Someone

public text v1 · immutable
#2128404 ·published 2012-03-15 16:11 UTC
rendered paste body
private static PropertyInfo GetPropertyInfo(object container, int attributeId)
        {
            return container.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance).Where(propertyInfo => propertyInfo.GetCustomAttributes(false).ToDictionary(a => a.GetType().Name, a => a).Any(element => ((ColumnIndex) element.Value).Id == attributeId)).Select(propertyInfo => container.GetType().GetProperty(propertyInfo.Name)).FirstOrDefault();
        }