Compilation errors, when you use CustomTemplateBase.

Aug 2, 2011 at 12:31 PM


I createdCustomTemplateBase and implement there method like in your example.


public abstract class MyCustomTemplateBase<T> : TemplateBase<T>
  public string ToUpperCase(string name)
    return name.ToUpperCase();

I use .cshtml files to store my templates.

When i try to build project I have Compilation error:
Error The name 'ToUpperCase' does not exist in the current context

How to fix this problem?