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