Type type = typeof(Product);
DisplayNameAttribute att = (DisplayNameAttribute)type.GetProperty("Name").GetCustomAttributes(typeof(DisplayNameAttribute), true).SingleOrDefault();
This assumes the attribute always exists. Modify for the case when it may not.
edit:
To get the value string x = att.DisplayName;
If Product is a base class use Type type = p.GetType();
instead.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…