using System.ComponentModel; Employee emp = new Employee(); PropertyDescriptor propDesc = TypeDescriptor.GetProperties(emp)["FirstName"]; UITypeEditor editor = (UITypeEditor)propDesc.GetEditor(typeof(UITypeEditor));
using System.ComponentModel; PropertyDescriptor propDesc = TypeDescriptor.GetConverter(typeof(DateTime)).GetProperties()["Now"]; UITypeEditor editor = (UITypeEditor)propDesc.GetEditor(typeof(UITypeEditor));Package/library: System.ComponentModel.DataAnnotations