Share via


XC#, seems like a really cool tool

I was just playing around with some stuff at home where I was wishing that we had compile time attributes, it looks like XC# supports what I was looking for, I'll have to play with it a bit to be sure...

https://www.resolvecorp.com/Products.aspx

Comments

  • Anonymous
    October 07, 2004
    It would seem that if you add meta data to check for particular errors, then you already know those errors exist and don't nee to add the extra meta data..
  • Anonymous
    October 07, 2004
    Well, yeah, you could add code in your method that checks incoming values for null (for instance, to speak to the [NotNull()] attribute used as an example on XC#'s site). And that's what many people do, on the other hand a model with which to easily express those contracts so that they can be checked by code analysis tools and are easily expressed and not so easily accidentally removed is nice.

    But, that's not what I'm interested in with this tool. I've been playing with attributes at runtime to augment method definitions and tie things together... However reflection is sloooowwww... and I think it would be cool to be able to have the attributes be used at compile time to generate non-reflection based code which is then inserted into my assembly and called at runtime instead of using the reflection that i'm using now... And I can imagine other cases along the code-generation thought train that are interesting to me...