Convert Nulls to Empty String in an object.
        Posted  
        
            by John
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by John
        
        
        
        Published on 2010-04-06T14:28:39Z
        Indexed on 
            2010/04/06
            14:43 UTC
        
        
        Read the original article
        Hit count: 169
        
c#
What is the easiest way to take an objects and convert any of its values from null to string.empty ?
I was thinking about a routine that I can pass in any object, but I am not sure how to loop through all the values.
© Stack Overflow or respective owner