You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verified the null checking in the extension methods. (dotnet#316)
* Verified the null checking in the extension methods.
* Apply suggestions from code review
Co-Authored-By: Carlos Sanchez Lopez <[email protected]>
* Updated Test to check for named parameters. Removed additional braces
* This fixes null checks in NetFX.
Adds equivalent null checks to NetFX.
Adds back Allman style braces.
// Appropriate security check should be done for us by FileSecurity.
50
53
fileSecurity.Persist(fullPath);
51
54
}
52
55
56
+
/// <summary>
57
+
/// This extension method for FileStream returns a FileSecurity object containing security descriptors from the Access, Owner, and Group AccessControlSections.
58
+
/// </summary>
59
+
/// <param name="fileStream">An object that represents the file for retrieving security descriptors from</param>
60
+
/// <exception cref="ArgumentNullException"><paramref name="fileStream" /> is <see langword="null" />.</exception>
61
+
/// <exception cref="ObjectDisposedException">The file stream is closed.</exception>
0 commit comments