private string LookupPrefix(XamlMember property)
 {
     string str;
     string prefix = this.xamlXmlWriter.LookupPrefix(property.GetXamlNamespaces(), out str);
     if ((prefix == null) && !this.meSettings.ContinueWritingWhenPrefixIsNotFound)
     {
         this.failed = true;
         return string.Empty;
     }
     return prefix;
 }
        private string LookupPrefix(XamlMember property)
        {
            string str;
            string prefix = this.xamlXmlWriter.LookupPrefix(property.GetXamlNamespaces(), out str);

            if ((prefix == null) && !this.meSettings.ContinueWritingWhenPrefixIsNotFound)
            {
                this.failed = true;
                return(string.Empty);
            }
            return(prefix);
        }
示例#3
0
        string LookupPrefix(XamlMember property)
        {
            string prefix = this.xamlXmlWriter.LookupPrefix(property.GetXamlNamespaces(), out _);

            if (prefix == null)
            {
                if (!this.meSettings.ContinueWritingWhenPrefixIsNotFound)
                {
                    failed = true;
                    // the prefix is not found and curly syntax has no way of defining a prefix
                    return(string.Empty); // what we return here is not important, since Failed has set to be true
                }
            }

            return(prefix);
        }