Saturday, March 31, 2012

String to Object?

Hi:

Can I convert a string to an object?

In my system I have the following:

Document.Title.Contains("Sony Camera")

The above returns an object of type Criterion, however, it will be saved in database,

when i read the above line as string, i want to make it an object of type Criterion, is this possible?

thank you.

Hi

(objectName) Document.Title.Contains("Sony Camera")

or

object.parse(Document.Title.Contains("Sony Camera"));


Hi

Thanks for the reply.

Don't I need any reflection? Just guessing.

Thanks,

0 comments:

Post a Comment