Modify method Directory.CreateDirectoryCore to return null as well as DirectoryInfo instance.
Closed this issue · 0 comments
Yomodo commented
Internally, the returned DirectoryInfo
instance from Directory.CreateDirectory
is not always needed.
Creating the instance takes some cycles that can be prevented so methods calling Directory.CreateDirectory
will benefit from this, like Directory.Copy
.
Add argument bool returnNull
to method Directory.CreateDirectoryCore
to accomplish this.