Results 1 to 2 of 2

Thread: One way ExpressionConverter?

  1. #1
    Join Date
    Aug 2008
    Posts
    1

    Post One way ExpressionConverter?

    Hello, I hope some of you experts can help me with this

    I'm using TypeConverters to persist object propertiy values to a database (for my own custom Ioc) and I need to persist IExpression types. The expression converter only seems to convert from string, not to string.

    How can I do this as all I get using the ExpressionConverter is something like "Expression[5663623]".

    I have probed the Expression object all the way down, but nothing. The only like I can see is for me to write some code which iterates throught the down, right etc properties to build the string up.

    Is there an easier way or am I just completely stupid.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Cambridge, UK
    Posts
    1,340

    Default

    Hi,

    expressions are serializable. Why not simply serializing them?

    -Erich

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •