private string GetClrNamespace(Type type) { string assemblyName = (string)null; if (!this.namespaceAssembly.TryGetValue(type.Namespace, out assemblyName)) { assemblyName = type.Assembly.GetName().Name; } return(WindowProfileSerializer.GetClrNamespace(type.Namespace, assemblyName)); }
protected void WriteNamespaceDeclarations(XmlWriter writer) { writer.WriteAttributeString("xmlns", "x", (string)null, "http://schemas.microsoft.com/winfx/2006/xaml"); foreach (string namespaceName in this.namespacePrefix.Keys) { writer.WriteAttributeString("xmlns", this.namespacePrefix[namespaceName], (string)null, WindowProfileSerializer.GetClrNamespace(namespaceName, this.namespaceAssembly[namespaceName])); } }