What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-14 03:42:08
add a 'protected' constructor or the 'static' keyword to the class declaration program.cs
public class Program { protected Program() { // Do something. } public static Program Create() { // 100% Allowed. return new Program(); } public void DoSomething() { } } public static class A... Add solution
Best helpers
Cob
+5
Nick Rowe
+5
V0ight
+5
Jun Czyrka
+5
AppleFix88
+5
Kapil
+5
Oddthinking
+5
Arttu
+5
Geoffre14
+5
Lvoyster
+5
BuckNaked69
+5
S9527
+5