The automatic fix for RS0016 keeps removing the public API for the .NET 10 style extension members.
e.g.
/// <summary>Extensions for vectors with elements implementing <see cref="IRootFunctions{TSelf}"/>.</summary>
extension<T>(Vector2D<T> vector)
where T : IRootFunctions<T>
{
/// <summary>Gets the length of the vector.</summary>
public T Length => T.Sqrt(vector.LengthSquared);
}
/// <summary>Extensions for vectors with elements implementing <see cref="INumberBase{TSelf}"/>.</summary>
extension<T>(Vector2D<T> vector)
where T : INumberBase<T>
{
/// <summary>Gets the length squared of the vector.</summary>
public T LengthSquared => Vector2D.Dot(vector, vector);
}
The automatic fix for RS0016 keeps removing the public API for the .NET 10 style extension members.
e.g.