Skip to content

Commit

Permalink
Fix some build issues from previous commit for dotnet#77835 again
Browse files Browse the repository at this point in the history
• Apparently 'Both partial method declarations must be unsafe or neither may be unsafe'
  • Loading branch information
hamarb123 committed Dec 5, 2022
1 parent f21a5ae commit 1890115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace System.IO
{
partial class FileSystem
{
public static partial void CopyFile(string sourceFullPath, string destFullPath, bool overwrite)
public static unsafe partial void CopyFile(string sourceFullPath, string destFullPath, bool overwrite)
{
//Start the file copy and prepare for finalization
using StartedCopyFileState startedCopyFile = StartCopyFile(sourceFullPath, destFullPath, overwrite);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private static void StandardCopyFile(StartedCopyFileState startedCopyFile)

//CopyFile is defined in either FileSystem.CopyFile.OSX.cs or FileSystem.CopyFile.OtherUnix.cs
//The implementations on OSX-like Operating Systems attempts to clone the file first.
static partial void CopyFile(string sourceFullPath, string destFullPath, bool overwrite);
static unsafe partial void CopyFile(string sourceFullPath, string destFullPath, bool overwrite);

#pragma warning disable IDE0060
public static void Encrypt(string path)
Expand Down

0 comments on commit 1890115

Please sign in to comment.