A
Axel Dahmen
I don't get it. Within a function I want to define a constant array of
strings. But the compiler gives me error CS0133: "The expression being
assigned to 'dbParams' must be constant".
What am I doing wrong here:
private string myFunc()
{
const string[,] dbParams={{"tas", "tbx"}
,{"twe", "dg"}
,{"bira", "dfh"}
,{"we", "strh"}
,{"yaz", "ask"}
};
...
}
TIA,
Axel Dahmen
strings. But the compiler gives me error CS0133: "The expression being
assigned to 'dbParams' must be constant".
What am I doing wrong here:
private string myFunc()
{
const string[,] dbParams={{"tas", "tbx"}
,{"twe", "dg"}
,{"bira", "dfh"}
,{"we", "strh"}
,{"yaz", "ask"}
};
...
}
TIA,
Axel Dahmen