'Warn user method will not work without params argument

I am developing a C# NuGet library that has a method which has a params parameter. The method operates with that parameter's argument and calling it with no argument does nothing. But, since it's "params" the user can, legally, call the method with no argument for that parameter.

Is it possible to somehow generate a warning or an error for the user if he does not provide said argument?

This isn't a code analyzer solution, as I won't be able to influence the environment of the user and I know I can throw an exception, but would prefer to warn the user beforehand.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source