Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. private PropertyInfo[] ObterPropriedades(Type classe)
  2. {
  3. PropertyInfo[] properties = classe.GetProperties();
  4. return properties;
  5. }
  6.  
  7. private string[] ObterValoresPropriedades(Type classe)
  8. {
  9. List<string> val = new List<string>();
  10. foreach (var valores in ObterPropriedades(classe))
  11. val.Add(valores.GetValue(valores,null).ToString());//aqui da o erro
  12. return val.ToArray();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement