Description
Per C# compiler message CS1611 ref or out is not allowed on params. in isn't mentioned specifically but the compiler error triggers when declaring it on params.
Example
public static int Create<T>(params ReadOnlySpan<T> values) // <- this triggers RCS1231
{
HashCode hash = new();
foreach (T value in values)
{
hash.Add(value);
}
return hash.ToHashCode();
}
Description
Per C# compiler message CS1611
reforoutis not allowed onparams.inisn't mentioned specifically but the compiler error triggers when declaring it onparams.Example