Hi
how do i set properties name dynamically.
public sealed class CompanyDetails
{
string _Jan = string.Empty;
string _Feb = string.Empty;
string _Mar = string.Empty;
public string Jan { get { return _Jan; } set { _Jan = value; } }
public string Feb { get { return _Feb; } set { _Feb = value; } }
public string Mar { get { return _Mar; } set { _Mar = value; } }
}
based on passing year the propertyname should change, if passing 2016 then "jan" propertyname should be "Jan2016" same as feb and march.
Thanks