I am trying to use a string variable (strX) inside a method. The method looks
like the following:
Class Something
{
public string strX;
public static DataSet ReturnDataSet(string strSql)
{
//This method returns a Dataset
strX
}
}
For some reason unknown to me, strX loses scope inside this method. Can
someone please explain why and is there a way around this? Thanks