public static PropertyInfo GetPropertyInfoByName(IAutoviewDto autoviewDto, string propertyName) { return(autoviewDto.GetType().GetProperty(name: propertyName)); }
public static PropertyInfo[] ArrayOfPropertyInfos(IAutoviewDto autoviewDto) { return(autoviewDto.GetType().GetProperties()); }