Parameter names changed in RC2

Some reference assembly parameter names have changed to match parameter names in the implementation assemblies.

Change description

In previous .NET 5 preview and RC versions, some reference assembly parameter names are different to their corresponding parameters in the implementation assembly. This can cause problems while using named arguments and reflection.

In .NET 5 RC2, these mismatched parameter names were updated in the reference assemblies to exactly match the corresponding parameter names in the implementation assemblies.

The following table shows the APIs and parameter names that changed.

API Old parameter name New parameter name
ActivityContext(ActivityTraceId, ActivitySpanId, ActivityTraceFlags, String, Boolean) traceOptions traceFlags
CompareInfo.IsPrefix(ReadOnlySpan<Char>, ReadOnlySpan<Char>, CompareOptions, Int32) suffix prefix

Reason for change

The parameter names were changed for consistency and to avoid failures when using named arguments and reflection.

Version introduced

5.0 RC2

If you encounter a compiler error due to a parameter name change, update the parameter name accordingly.

Affected APIs