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); }
public void AddNamespace(string ns) { _inner.AddNamespace(ns); }