Please, can somebody do this in VB NET or C#

// (x^2 + 3*x)/((x + 1)*(x^2 - 2*x + 1)) --> (-1/2)/(x+1) + (1/2 + (3/2) x)/(x^2-2x+1)
Polynomial.partialFraction x (x**2+3*x) [x+1; x**2-2*x+1] // (0, [-1/2; 1/2 + (3/2)*x])

When I try, I do not know how introduce denominatorsFactors

Thanks very much

Julian8a