.net obtener el valor de un atributo de un objeto dado el nombre del atributo


/ Published in: Visual Basic
Save to your folder(s)

.net obtener el valor de un atributo de un objeto dado el nombre del atributo


Copy this code and paste it in your HTML
  1. 'c#
  2. return car.GetType().GetProperty(propertyName).GetValue(car, null);
  3.  
  4. 'vb
  5. Return car.[GetType]().GetProperty(propertyName).GetValue(car, Nothing)

Report this snippet


Comments


You need to login to view comments.