Per MSDN:
A static constructor does not take access modifiers or have parameters.
A static constructor is called automatically to ini
A static constructor couldn't have any parameters. Well I suppose it could theoretically - but there is no instance of the class so it wouldn't make any sense. What would you do with those parameters if you had them? Call other static methods?
Make an empty constructor to the static class, and put the parametrized code to a normal function. If you call this function, the static class will be created.
the static class:
static class DataB
{
static DataB(){}
public static void funcWithParams(string st)
{...}
}
you can create it like this:
DataB.funcWithParams("some string");