Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AMembers
Message
 
 
À
27/08/2010 11:05:17
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01478874
Message ID:
01478881
Vues:
28
>>>Does anyone know how to get a list of all exposed properties for a class like aMembers fuinction in VFP? I need to inspect an object and iterate through the properties. I know Reflection is involved but I am not familiar with the constructs.
>>>
>>>Thanks
>>>
>>>Glenn
>>
>>What is your .NET version?
>>
>>Check http://msdn.microsoft.com/en-us/library/system.reflection.propertyinfo.aspx
>
>.Net version 2.0 or 3.5 either is OK. I have not yet begun to work with 4.0
>
>Glenn

Check also this link http://www.switchonthecode.com/tutorials/csharp-tutorial-using-reflection-to-get-object-information - looks like it's exactly what you need and applies to .NET 2.0
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform