Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PropertyInfo.GetValue Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
PropertyInfo.GetValue Question
Divers
Thread ID:
01473610
Message ID:
01473610
Vues:
86
I have an XML file deserialized into SuperCollectionClass. I'm trying to use reflection to look at it:
PropertyInfo[] properties = typeof(SuperCollectionClass).GetProperties();

foreach (var property in properties)
{
    string TableName = property.Name;

    var Value = property.GetValue(, null);
}
What is the first param that getValue expects? IntelliSense says object obj which tells me nothing. I don't get what it's looking for.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform