Answers for "c# xml check if attribute exists"

C#
0

c# xml check if attribute exists

static IEnumerable<(string key, string value)> GetNodeAttributes(XmlReader reader)
{
    for (int i = 0; i < reader.AttributeCount; i++)
    {
        reader.MoveToAttribute(i);
        yield return (reader.Name, reader.Value);
    }
}
Posted by: Guest on September-07-2021

Code answers related to "c# xml check if attribute exists"

C# Answers by Framework

Browse Popular Code Answers by Language