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: 1. Yes, currently targeting MVC 3. 2. Yes, the filename contains "Helper" at the end of it (before the extension). 3. Can't comment as this is the first time I've used the tool. Okay, I guess it's a case of "by design" then?
@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: 1. Yes, currently targeting MVC 3. 2. Yes, the filename contains "Helper" at the end of it (before the extension). 3. Can't comment as this is the first time I've used the tool. Okay, I guess it's a case of "by design" then?