public bool EnsureNamespace(string @namespace)
        {
            var added = _namespaces.Add(@namespace);

            if (added)
            {
                _razorService.AddNamespace(@namespace);
            }
            return(added);
        }
 /// <summary>
 /// Adds a namespace that will be imported into the template.
 /// </summary>
 /// <param name="ns">The namespace to be imported.</param>
 public void AddNamespace(string ns)
 {
     _proxy.AddNamespace(ns);
 }
Beispiel #3
0
 public void AddNamespace(string ns)
 {
     _inner.AddNamespace(ns);
 }