Ich habe die folgende KlassenhierarchieC# Designfrage - Static var?
public abstract BaseClass : System.Web.UI.UserControl
{
public virtual void Process(string sType)
{
//Do something
//Here I want to create a CSV list Ex: "type1, type2"
//Do I need to create a static variable? There might be several controls calling //Process. I need to scope it to the UserControl
}
}
In einer Benutzersteuerung, die von Baseclass erbt
public void ProcessParams()
{
base.Process("type1");
base.Process("type2");
}