M
Mark
A class can have more than one constructor, but can't one constructor call
another? It appears that the code below bombs and the error message claims
.... "denotes a 'class' which is not valid in the given context".
Thanks in advance! - Mark
public class cWhatever
{
public cWhatever(String str1)
{
whatever(str1, string.Empty);
}
public cWhatever(String str1, String str2)
{
//Do something
}
}
another? It appears that the code below bombs and the error message claims
.... "denotes a 'class' which is not valid in the given context".
Thanks in advance! - Mark
public class cWhatever
{
public cWhatever(String str1)
{
whatever(str1, string.Empty);
}
public cWhatever(String str1, String str2)
{
//Do something
}
}