hello,
i have class in which i have public static property.
i want to pass dynamic value to it instead of static string.
public static string hosts = "";
public string webconfiguration_description(string keyname)
{
string returnvalue="";
WebsiteSetup_Configuration wsc = db.WebsiteSetup_Configuration.FirstOrDefault(u => u.ConfigurationKey == keyname);
if(wsc!=null)
{
returnvalue = wsc.Description;
}
return returnvalue;
}
so i have above method i want to this return method value to static property.