I am trying to make a method that will go through a list of generic objects and replace all their properties of type string which is either null or
string
null
I suggest a different approach: AOP. You can intercept the setter and set the desired value to a valid one. With PostSharp it's quite easy.