public string Propriedade1 { get; set; }
public string Propriedade3 { get; set; }
public string Propriedade4 { get; set; }
public string Propriedade5 { get; set; }
public static void Main(string[] args)
Teste teste1 = new Teste();
Teste teste2 = new Teste()
Console.WriteLine(TemAlgumaPropriedadeComValor(teste1).ToString());
Console.WriteLine("-----------------------");
Console.WriteLine(TemAlgumaPropriedadeComValor(teste2).ToString());
public static bool TemAlgumaPropriedadeComValor(object myObject)
foreach (PropertyInfo pi in myObject.GetType().GetProperties())
if (pi.PropertyType == typeof(string))
string value = (string)pi.GetValue(myObject);
if (!string.IsNullOrEmpty(value))