Пример #1
0
        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));
        }
Пример #2
0
 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]));
     }
 }