Iri
Represents an Internationalized Resource Identifier.
using System.Runtime.CompilerServices;
namespace Ganss.Xss
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class Iri
{
public string Value { get; set; }
public bool IsAbsolute => !string.IsNullOrEmpty(Scheme);
[System.Runtime.CompilerServices.Nullable(2)]
[field: System.Runtime.CompilerServices.Nullable(2)]
public string Scheme {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
[System.Runtime.CompilerServices.NullableContext(2)]
private set;
}
public Iri(string value, [System.Runtime.CompilerServices.Nullable(2)] string scheme = null)
{
Value = value;
Scheme = scheme;
}
}
}