Tech Off Post

Single Post Permalink

View Thread: LINQ Question
  • User profile image
    littleguru

    SecretSoftware wrote:
    Thanks for your reply LittleGuru. I read the bug report you filed, and I am upset by this change


    I had to change my ORM to work with dynamic types... Usually i create an instance of an object (you can even specify a factory for it) and set the property values afterwards. For anonymous types I had to change that to call the constructor with the values...

    Btw. does somebody know how to detect if a type is an anonymous type? I have seen that there is the CompilerGeneratedAttribute set on them and that they have a weird name, but is there any other thing I could do... There's no property on the type that returns true for an anonymous type? - I haven't found one so far Sad