I have a class:
public class foo { public IEnumerable stst_soldToALTKN { get; set; } public int sId { get; set; } public strin
You can use this:
public IEnumerable GetAllPropertyNames(object o) { foreach (PropertyInfo propInfo in o.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance)) yield return propInfo.Name; }