last day (15 days later) » 

18:05
@bobson: Care to join me in chat?
18:19
Sure. I'm always interesting in learning.
Awesome :)
So, in the absence of class references, how would you implement the deserialization example? Let's say you have a tree of objects in JSON or XML format, and each object in the tree contains a property named Class that's a string type, the name of a class in your program that is capable of containing one or more child objects to match the tree structure.
How do you deserialize this?
(Not trying to challenge you or be argumentative or anything; just trying to get in the same page and see what you're ised to)
18:42
@Bobson: Argh, you're off in another tab and didn't even see this, because I forgot to use the @ to ping you, aren't you? :P
@DavidStratton: Hello :)
No idea how this room ended up on Christianity.SE; I said to create it under Programmers :P
19:18
...and you're all quiet, and I have to run because of RL. So... nevermind, I guess. :(
19:30
Yep, I am. Sorry :(
I found the solution to one bug while trying to test another and got all distracted. :)
@MasonWheeler Anyway, to answer the question, Activator.CreateInstance() can create an object from a string of a class name.
Actually, looking at it, it returns an ObjectHandle object, which I'd never actually noticed before. It lets you pass around the object without attaching any type information to it, although you have to .Unwrap() it before you can use it.
 
1 hour later…
20:46
What Christian denomination is this representing?
20:57
Per an earlier message, it appears it was supposed to be on Programmers. No idea why it's here.
21:52
Darn. I was thinking "Wow! A church that talks about the really important stuff in life."
22:05
@fredsbend Sorry to disappoint. Although it could be a fun exercise to go over the discussion of class references and try and make everything into a religious reference...
It'll have to wait for another day, though. I too am about to run out.

last day (15 days later) »