In RazorGenerator 1.6.3 a construct such as the following:
@functions {
public class MyClass
{
public string SomeMember { get; set; }
}
}
will produce a public static class in the generated code.
If the public keyword is omitted (making the class private), the class is not generated as static.
Comments: Shouldn't be a by design in this case. The code's supposed to only change the Helper type but ends up aggressively changing all class declarations it encounters to static.
@functions {
public class MyClass
{
public string SomeMember { get; set; }
}
}
will produce a public static class in the generated code.
If the public keyword is omitted (making the class private), the class is not generated as static.
Comments: Shouldn't be a by design in this case. The code's supposed to only change the Helper type but ends up aggressively changing all class declarations it encounters to static.