Example #1
0
 private void ChangeNullStringToEmpty(leader_entry leaderEntry)
 {
     foreach(var propertyInfo in leaderEntry.GetType().GetProperties())
       {
     if(propertyInfo.PropertyType == typeof(string))
     {
       if(propertyInfo.GetValue(leaderEntry, null) == null)
       {
         propertyInfo.SetValue(leaderEntry, string.Empty, null);
       }
     }
       }
 }