AngleSharp by AngleSharp

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

.NET API 1,244,160 bytes

 NotCondition

namespace AngleSharp.Dom.Css { internal sealed class NotCondition : CssNode, IConditionFunction, ICssNode, IStyleFormattable { private IConditionFunction _content; public IConditionFunction Content { get { return _content ?? new EmptyCondition(); } set { if (_content != null) RemoveChild(_content); _content = value; if (value != null) AppendChild(_content); } } public bool Check() { return !Content.Check(); } public override string ToCss(IStyleFormatter formatter) { return "not " + Content.ToCss(formatter); } } }