Hy
I have a class like this:
public class myClass
{
public string fieldA;
public Datatime fieldB;
...
}
I would like to be able to provide a property kind of like this:
public List
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 1, 2011, 11:48 PM EDT
Poul Christiansen8 reputationPosted Sep 2, 2011, 1:29 AM EDT
I can now see that I need to write further requirements:
using a foreach (object f in Fields) I need to also be able to assign values that would the also affect the value on the class instance.
I'm sorry I didn't put that in my first question.
VulpesRank #55 · 29.2K reputationPosted Sep 2, 2011, 2:06 AM EDT
Poul Christiansen8 reputationPosted Sep 2, 2011, 2:11 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 2, 2011, 2:23 AM EDT
Poul Christiansen8 reputationPosted Sep 2, 2011, 2:50 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 2, 2011, 2:58 AM EDT