Exemple #1
0
 /// <summary>
 /// Registers the namespace of the given Type with the given prefix
 /// </summary>
 /// <param name="service">The service to register to</param>
 /// <param name="ns">The namespace that should get registered</param>
 /// <param name="overwrite">The flag if the existing should be overwritten</param>
 /// <returns>The service itself</returns>
 public static XamlService RegisterNamespace(this XamlService service, string ns, bool overwrite = false) =>
 service.RegisterNamespace(service.GeneratePrefix(ns), ns, overwrite);