Click to See Complete Forum and Search --> : Dynamic Properties?


code?
September 24th, 2008, 01:32 AM
I don't suppose you can add properties dynamically, can you?

void DoIt()
{
this.NewProperty = new Object();
}
DoIt();


I would just have to define a List<Object> in a form and/or object.


Also, Why can't I convert a form to an object array? Can someone help me here, or is it just not possible.

MNovy
September 24th, 2008, 02:27 AM
It is no matter of "if it is possible", but it is matter of your design.
It seems to be messed up a bit.

There is no reason to add new members to a class. Why you want to do this?

nabeelisnabeel
September 24th, 2008, 02:35 AM
MNovy, I want to contact you personally. You have disabled receiving emails from this board. Kindly send a personal message to me or enable email sending for sometime.

MMH
September 24th, 2008, 02:35 AM
Why do you want to convert the Form into an object array?

MNovy
September 24th, 2008, 03:59 AM
MNovy, I want to contact you personally. You have disabled receiving emails from this board. Kindly send a personal message to me or enable email sending for sometime.


this is was my PN system says:
nabeelisnabeel has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.