C# -Why does System.IO.File.GetLastAccessTime return an expected value when the file is not found?

后端 未结 6 1759
野性不改
野性不改 2021-01-04 06:05

Please, explain your thoughts.

1.  DateTime dt = System.IO.File.GetLastAccessTime(\"C:\\\\There_is_no_such_file.txt\");
2.  DateTime dt = System.IO.File.Get         


        
6条回答
  •  一个人的身影
    2021-01-04 06:39

    The reason might be that you have turned off the "Enable unmanaged code debugging option" check in project properties under the Debug section.

提交回复
热议问题