/ Published in: Visual Basic
                    
                                        
.net obtener el valor de un atributo de un objeto dado el nombre del atributo
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
'c#
return car.GetType().GetProperty(propertyName).GetValue(car, null);
'vb
Return car.[GetType]().GetProperty(propertyName).GetValue(car, Nothing)
Comments
 Subscribe to comments
                    Subscribe to comments
                
                