Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Properties to an object at run time
Message
De
03/02/2011 13:08:22
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Adding Properties to an object at run time
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01498603
Message ID:
01498603
Vues:
106
Hi,

I have an EntityList with the following "fields" App_item, App_Type and App_Value.

It contains things like:

"PremiumReminderDays", "I", "10"
"LapseDays", "I", "5"
"CompanyName", "C", "Samaan Systems Ltd."

I have an AppInfo object that I want to add properties to from this list so I end up with properties like this:

AppInfo.PremiumReminderDays = 10
AppInfo.LapseDays = 10
AppInfo.CompanyName = "Samaan Systems Ltd."

How do I do this in C#?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform