F# Type Providers in C#?

Topics: C# Language Design, VB Language Design
Feb 17, 2015 at 4:34 PM
I've always yearned for type providers in c#/vb.net since they were announced in f#. For example the other day i was modifying a wcf service we have that changes constantly. Updating service references to be honest is a major pain. It would be nice to just do the following on the client end (like you can for f#):
type wcfService = new WsdlService("http://mycompany.com/services/service.svc?wsdl");
client = wcfService.GetBasicHttpBunding_IService();

var myValue = client.CalcValue();
This greatly reduces the configuration hell situations you get yourself in. I'm sure it would not only be useful for WCF but in a lot of other situations. Please consider for c# 7 :).

Wasn't sure if this topic was supposed to be added on github or codeplex so i added it to both.
Feb 25, 2015 at 4:23 AM
The Roslyn team no longer uses this site. Your comments are most welcome over at https://github.com/dotnet/roslyn