[Solved] c# class create parameters


ConnectionStrings.Default.ControlCenter_V3 is almost certainly not a constant. Default values for parameters can only be constants, or things like null.

One option is to do something like:

public ControlCenter_v3(string st = null)
    : base(st ?? ConnectionStrings.Default.ControlCenter_V3)
{...}

solved c# class create parameters