private static bool TryGetDefinedPrefix(IXmlNode node, string namespaceUri, out string prefix) { var definedPrefix = node.LookupPrefix(namespaceUri); return(string.IsNullOrEmpty(definedPrefix) ? Try.Failure(out prefix) : Try.Success(out prefix, definedPrefix)); }
private static bool TryGetDefinedPrefix(IXmlNode node, string namespaceUri, out string prefix) { var definedPrefix = node.LookupPrefix(namespaceUri); return string.IsNullOrEmpty(definedPrefix) ? Try.Failure(out prefix) : Try.Success(out prefix, definedPrefix); }
public string LookupPrefix(string namespaceUri) { return(node.LookupPrefix(namespaceUri)); }