|
-
September 24th, 2008, 01:32 AM
#1
Dynamic Properties?
I don't suppose you can add properties dynamically, can you?
Code:
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.
Last edited by code?; September 24th, 2008 at 03:13 PM.
-
September 24th, 2008, 02:27 AM
#2
Re: Dynamic Properties?
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?
-
September 24th, 2008, 02:35 AM
#3
Re: Dynamic Properties?
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.
-
September 24th, 2008, 02:35 AM
#4
Re: Dynamic Properties?
Why do you want to convert the Form into an object array?
-
September 24th, 2008, 03:59 AM
#5
Re: Dynamic Properties?
 Originally Posted by nabeelisnabeel
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|