create properites and assign to object at rum time
-
i wants to create property in a class at run time with different names and datatypes.. thanks
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
-
i wants to create property in a class at run time with different names and datatypes.. thanks
Muhammad Ismail Khan SoftWare Developer CRM(Islamabad), Pakistan
Possible, but hardly practical. You'd have to use reflection to do this. I don't know of any examples on the web, nor do I have any myself. Usually, if this comes up, I would have to question the design. Why do you think you have a need for this?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Possible, but hardly practical. You'd have to use reflection to do this. I don't know of any examples on the web, nor do I have any myself. Usually, if this comes up, I would have to question the design. Why do you think you have a need for this?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Dave Kreskowiak wrote:
Why do you think you have a need for this?
Looking at the subject line, rum time? I'm so there after a long day. Captain Morgan with Dr. Pepper :-D
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
Dave Kreskowiak wrote:
Why do you think you have a need for this?
Looking at the subject line, rum time? I'm so there after a long day. Captain Morgan with Dr. Pepper :-D
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
I'm out of the Captain, but I've got a gallon of Jack Daniels on the kitchen counter! :)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I'm out of the Captain, but I've got a gallon of Jack Daniels on the kitchen counter! :)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Dave Kreskowiak wrote:
got a gallon of Jack Daniels on the kitchen counter!
Whoohoo. That'll work as well.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham