Is there a better way to do what is done in the code that follows? I added a PadLeft in the constructor because I need the leading zero and 10 characters. The leading zero is stripped off, for some reason, in my call to the API that returns the "wbd10" value. I did this the old way, but was just wondering if there is a better way to do this?
public class wqpWBD10
{
string _wbd10;
public string WBD10
{
get { return _wbd10; }
set { _wbd10 = value.PadLeft(10, '0'); }
}
public string WBD10Name { get; set; }
public string HUC8 { get; set; }
public string HUC8Name { get; set; }
}