Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Knowing if a property exists
Message
De
03/03/2011 12:02:06
 
 
À
03/03/2011 11:45:59
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01502282
Message ID:
01502523
Vues:
32
>Looks like you've got it - but just to throw in some Linq :-} :
Dim mi As System.Reflection.MemberInfo = (From xx In oLabel.GetType().GetMembers() _
>                                                  Where xx.Name = "PropertyB" Select xx).FirstOrDefault()
>
>        If Not mi Is Nothing Then
>            'Got it
>        End If
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform