I create a class which would hold my static methods (methods I want to call
without having to instantiate the class). I then attempted to use it in
another class and I get the following error
"GenericDataBase.DataUtilities(cmd, "Stuff") denotes a class which is not
valid in the current context. What does this mean?
Here is the class that I created....
public class DataUtilities
{
public DataUtilities()
{
}
public static string ListParmValues(IDbCommand cmd, string breakCharacter)
{
StringBuilder vals= new StringBuilder();
......
return vals.ToString();
}
}
Here is the code in the "other" class that I am calling...
string val = GenericDatabaseBase.DataUtilities(cmd, "<br>");