Parameter names changed in reference assemblies
Some reference assembly parameter names have changed to match parameter names in the implementation assemblies.
Change description
In previous .NET 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, 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.
Reason for change
The parameter names were changed for consistency and to avoid failures when using named arguments and reflection.
Version introduced
5.0
Recommended action
If you encounter a compiler error due to a parameter name change, update the parameter name accordingly.
Affected APIs
- System.CodeDom.Compiler.CodeGenerator.GenerateStatements(CodeStatementCollection)
- System.ComponentModel.ParenthesizePropertyNameAttribute.Equals(Object)
- System.ComponentModel.RefreshPropertiesAttribute.Equals(Object)
- StackFrame(Boolean)
- StackFrame(Int32, Boolean)
- System.Drawing.Icon.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
- System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
- System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginRead(Byte[], Int32, Int32, AsyncCallback, Object)
- System.IO.IsolatedStorage.IsolatedStorageFileStream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object)
- System.Net.IPAddress.Parse(ReadOnlySpan<Char>)
- System.Net.IPAddress.TryParse(ReadOnlySpan<Char>, IPAddress)
- System.Net.NetworkCredential.GetCredential(String, Int32, String)
- System.StringNormalizationExtensions.IsNormalized(String, NormalizationForm)
- System.StringNormalizationExtensions.IsNormalized(String)
- System.StringNormalizationExtensions.Normalize(String, NormalizationForm)
- System.StringNormalizationExtensions.Normalize(String)