How do I return the first string variable that isn't null or emtpy

Posted by RandomBen on Stack Overflow See other posts from Stack Overflow or by RandomBen
Published on 2010-03-29T15:45:31Z Indexed on 2010/03/29 16:13 UTC
Read the original article Hit count: 250

Filed under:

If I have 5 String variables and between 0 and 5 of them are null or empty is there an easy/short way of returning the first one that is not null or empty? I am using .NET 3.5

© Stack Overflow or respective owner

Related posts about c#