private string sortName = "PatientName";
    string source = x.GetType().GetProperty(sortName).GetValue(x, null) as string;


本文转载:CSDN博客