Proxy Generation in Whidbey (VS Studio) has been improved
When generating the proxy class based on the WSDL, the proxy classes created in Whidbey now use properties instead of public members. By the way, this is the suggested coding standard in most companies. That is, you never expose public members but always uses properties instead.
===Before
public class Email {
public string From;
public string To;
}
===Now in Whidbey
public partial class Email
{
private string fromField;
private string toField;
public string From {
get { return this.fromField; }
set { this.fromField = value;
}
public string To {
get { return this.toField; }
set { this.toField = value; }
}
}

0 Comments:
Post a Comment
<< Home