Closed euju-ms closed 6 days ago
@JonathanMagnan Do you think we can proceed with this PR? I'm just trying to figure out my options :)
Hello @euju-ms ,
Sorry, I forgot to answer.
I'm currently on vacation this week in Mexico. So, I will look at it next week when I will be back.
Best Regards,
Jon
T HtmlNode.GetAttributeValue<T>(string name, T def)
is not AOT compatible because it calls into an extension methodUtilities.To
(which is also not AOT compatible).This PR makes
T HtmlNode.GetAttributeValue<T>(string name, T def)
obsolete, and adds an overload for GetAttributeValue that takes in an additional parameterparser
for converting the string attribute value into type T.All the internal usages are converted to use the new API.