Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • And there is absolutely no way of overriding this logic or solution around this without declaring a variable for each one? Commented Dec 1, 2009 at 23:11
  • An alternative would be to write a command line util (or preferably use T4) to generate your 300 properties for you from some other file/data. Commented Dec 1, 2009 at 23:34
  • You could use something like PostSharp to rewrite your properties post-compile. Probably isn't worth it for something as trivial as that, however. Commented Dec 1, 2009 at 23:39
  • I was thinking of this as more of a theoretical question then a brute force one... I am open to any ideas that could help me work around the problem, with minimal code. Commented Dec 1, 2009 at 23:43
  • 2
    I don't see how this answers his question. Commented Dec 1, 2009 at 23:46