Class Boilerplate
- Namespace
- SunamoDevCode
- Assembly
- SunamoDevCode.dll
Provides boilerplate code templates for C# code generation
public class Boilerplate
- Inheritance
-
Boilerplate
- Inherited Members
- Extension Methods
Methods
CSharpClass(string, string, string, string)
Generates C# class boilerplate with initialization method
public static string CSharpClass(string addNamespacesLines, string className, string fields, string contentOfInitMethod)
Parameters
addNamespacesLinesstringAdditional namespace using declarations
classNamestringName of the class
fieldsstringField declarations
contentOfInitMethodstringContent of Init method
Returns
CSharpCmd(string)
Generates C# command-line program boilerplate
public static string CSharpCmd(string innerMain)
Parameters
innerMainstringMain method content