AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-168" />

 HashChangedEvent

public class HashChangedEvent : Event
Represents a custom event that provides an additional details property.
using AngleSharp.Attributes; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace AngleSharp.Dom.Events { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [DomName("HashChangeEvent")] public class HashChangedEvent : Event { [DomName("oldURL")] public string PreviousUrl { get; set; } [DomName("newURL")] public string CurrentUrl { get; set; } public HashChangedEvent() { } [System.Runtime.CompilerServices.NullableContext(2)] [DomConstructor] [DomInitDict(1, true)] public HashChangedEvent([System.Runtime.CompilerServices.Nullable(1)] string type, bool bubbles = false, bool cancelable = false, string oldURL = null, string newURL = null) { Init(type, bubbles, cancelable, oldURL ?? string.Empty, newURL ?? string.Empty); } [DomName("initHashChangedEvent")] [System.Diagnostics.CodeAnalysis.MemberNotNull(new string[] { "PreviousUrl", "CurrentUrl" })] public void Init(string type, bool bubbles, bool cancelable, string previousUrl, string currentUrl) { Init(type, bubbles, cancelable); Stop(); PreviousUrl = previousUrl; CurrentUrl = currentUrl; } } }