After migrating form .net core 2.2 to 3.1 I am getting warning 'string.Copy(string)' is obsolete: 'This API should not be used to create mutable strings.
According MSDN link I didn't find an example of replacing. I found Span but how to implement it no idea.
My field which I am using string.Copy()
var currentVerison = projectForCreationDto.KubesprayCurrentVersion.Trim();
var targetVersion = string.Copy(currentVerison);