AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.6" />

.NET API 1,261,568 bytes

 AttrExtensions

static class AttrExtensions
Extensions for the list of attributes.
using AngleSharp.Dom; using System.Diagnostics; namespace AngleSharp.Extensions { [DebuggerStepThrough] internal static class AttrExtensions { public static bool AreEqual(this INamedNodeMap sourceAttributes, INamedNodeMap targetAttributes) { if (sourceAttributes.Length != targetAttributes.Length) return false; foreach (IAttr sourceAttribute in sourceAttributes) { bool flag = false; foreach (IAttr targetAttribute in targetAttributes) { flag = (sourceAttribute.GetHashCode() == targetAttribute.GetHashCode()); if (flag) break; } if (!flag) return false; } return true; } } }