Something like this?
var end = endDate.Year + endDate.Month / 12.0;
var start = startDate.Year + startDate.Month / 12.0;
var years = (int)(end - start);
var months = (end - start) * 12;
Not sure if you wanted to round the months...
Hope this helps,
John