My goal is really simple, I want to be able to build a string at "compile time".
example:
And boudino, thanks for your answer but I've already tried that. What I don't like is that you have to define a Method (since delegate doesn't works with Properties).Code:string str = "SELECT * FROM " + Stringize(typeof(Foo)) + " WHERE " + Stringize(propertyof(Foo.X)) + "='1'";




Reply With Quote