|
|
public static bool TryGetValueAsString(this XmlAttributeCollection xmlAttributeCollection, string attrName, out string attrVal, Properties properties = null)
public static bool TryGetValueAsString(this XmlAttributeCollection xmlAttributeCollection, string attrName,
out string attrVal, Properties properties = null)
{
var attr = xmlAttributeCollection[attrName];
if (attr == null)
{
attrVal = default;
return false;
}
|
|