Last week at the great community conference NRW Conf 2013 in Wuppertal i heard Steffen Forkmann speaking about F# TypeProviders. This was the second time i listened to this topic – sometimes it needs a repetitive consumption of a topic to trigger a reaction.
Excited by the F# TypeProviders i tried to also have TypeProviders in C#.
As an example i have written the Regex TypeProvider in C#.
Unfortunately the C# can not infer dynamically generated types like F# interactive does. So the type information is not available at edit time.
The debugger instead can see the dynamically generated type and show the properties.
For full source to try yourself see GitHub:
https://github.com/FrankPfattheicher/CSharpx
I am interested in your opinion about the usefulness of this approach.