views:

155

answers:

0

In VS.NET 2008 / .NET Framework 3.5, Is there anyway to generate intellisense based on the custom config sections?

I've got a config section looks like this:

 <custom>
          <key name="NameGoesHere" />
          <key name="SecondNameGoesHere" />
 </custom>

Currently this is tied to a custom config section class so I call it like this:

Customs("NameGoesHere")

But I want to use it this like:

Customs.NameGoesHere

Is there anyway to do this without code generation. If not, is there anyway to generate new code in VS.NET as soon as the user change .config file. I think I've seen a similar feature in subsonic about code generation.