c# get custom attribute from property code example
Example: c# get custom attribute from property
PropertyInfo[] propertyInfos = typeof(T).GetProperties(BindingFlags.Public | BindingFlags.Instance);
PropertyInfo p = propertyInfos.Where(x => x.GetCustomAttribute() != null && x.GetCustomAttribute().PropertyName == "xx");