1
私は、ubuntu linux上で動作するdotnet coreで動作するように次のコードを取得しようとしていますが、 "文字列にはコピー定義が含まれていません" String.Copyはdotnet-coreではサポートされていません。dotnetコア用のString.Copyの代替ファイル
Attendance = String.Copy(markers) };
dotnetコアで浅い文字列コピーを実行する最適な方法は何ですか?私はstring.CopyToを使うべきですか?
おかげ
//I want to add an initial marker to each record
//based on the number of dates specified
//I want the lowest overhead when creating a string for each record
string markers = string.Join("", dates.Select(p => 'U').ToArray());
return logs.Aggregate(new List<MonthlyAttendanceReportRow>(), (rows, log) => {
var match = rows.FirstOrDefault(p => p.EmployeeNo == log.EmployeeNo);
if (match == null) {
match = new MonthlyAttendanceReportRow() {
EmployeeNo = log.EmployeeNo,
Name = log.FirstName + " " + log.LastName,
Attendance = String.Copy(markers) };
rows.Add(match);
} else {
}
return rows;
});
[どうやってString.Copyのネットコア?](http://stackoverflow.com/q/41758338/213550) – VMAtm
の可能な複写の可能性似た質問はい、しかし、これはもう1つの2ヶ月前に尋ねられました?これをどう対処するか分かりません。 – onemorecupofcoffee
ええ、この質問のように見える、私の悪いattemtionを得た:( – VMAtm