mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
Simplify built-in types across corefx (dotnet/corefx#30656)
Commit migrated from https://github.com/dotnet/corefx/commit/e0ba7aa8026280ee3571179cc06431baf1dfaaac
This commit is contained in:
1 parent
f8dd66c2b0
commit
2fb9f847fc
684 files changed
+4936
-4936
No files matched your search
+2
-2
@@ -25,7 +25,7 @@ namespace System.IO
|
||||
if (directorySecurity == null)
|
||||
throw new ArgumentNullException(nameof(directorySecurity));
|
||||
|
||||
String fullPath = Path.GetFullPath(directoryInfo.FullName);
|
||||
string fullPath = Path.GetFullPath(directoryInfo.FullName);
|
||||
directorySecurity.Persist(fullPath);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace System.IO
|
||||
if (fileSecurity == null)
|
||||
throw new ArgumentNullException(nameof(fileSecurity));
|
||||
|
||||
String fullPath = Path.GetFullPath(fileInfo.FullName);
|
||||
string fullPath = Path.GetFullPath(fileInfo.FullName);
|
||||
// Appropriate security check should be done for us by FileSecurity.
|
||||
fileSecurity.Persist(fullPath);
|
||||
}
|
||||
|
||||
+12
-12
@@ -87,7 +87,7 @@ namespace System.Security.AccessControl
|
||||
}
|
||||
|
||||
public FileSystemAccessRule(
|
||||
String identity,
|
||||
string identity,
|
||||
FileSystemRights fileSystemRights,
|
||||
AccessControlType type)
|
||||
: this(
|
||||
@@ -121,7 +121,7 @@ namespace System.Security.AccessControl
|
||||
}
|
||||
|
||||
public FileSystemAccessRule(
|
||||
String identity,
|
||||
string identity,
|
||||
FileSystemRights fileSystemRights,
|
||||
InheritanceFlags inheritanceFlags,
|
||||
PropagationFlags propagationFlags,
|
||||
@@ -237,7 +237,7 @@ namespace System.Security.AccessControl
|
||||
}
|
||||
|
||||
public FileSystemAuditRule(
|
||||
String identity,
|
||||
string identity,
|
||||
FileSystemRights fileSystemRights,
|
||||
AuditFlags flags)
|
||||
: this(
|
||||
@@ -250,7 +250,7 @@ namespace System.Security.AccessControl
|
||||
}
|
||||
|
||||
public FileSystemAuditRule(
|
||||
String identity,
|
||||
string identity,
|
||||
FileSystemRights fileSystemRights,
|
||||
InheritanceFlags inheritanceFlags,
|
||||
PropagationFlags propagationFlags,
|
||||
@@ -319,7 +319,7 @@ namespace System.Security.AccessControl
|
||||
{
|
||||
}
|
||||
|
||||
internal FileSystemSecurity(bool isContainer, String name, AccessControlSections includeSections, bool isDirectory)
|
||||
internal FileSystemSecurity(bool isContainer, string name, AccessControlSections includeSections, bool isDirectory)
|
||||
: base(isContainer, s_ResourceType, name, includeSections, _HandleErrorCode, isDirectory)
|
||||
{
|
||||
}
|
||||
@@ -421,7 +421,7 @@ namespace System.Security.AccessControl
|
||||
return persistRules;
|
||||
}
|
||||
|
||||
internal void Persist(String fullPath)
|
||||
internal void Persist(string fullPath)
|
||||
{
|
||||
WriteLock();
|
||||
|
||||
@@ -437,7 +437,7 @@ namespace System.Security.AccessControl
|
||||
}
|
||||
}
|
||||
|
||||
internal void Persist(SafeFileHandle handle, String fullPath)
|
||||
internal void Persist(SafeFileHandle handle, string fullPath)
|
||||
{
|
||||
WriteLock();
|
||||
|
||||
@@ -612,17 +612,17 @@ namespace System.Security.AccessControl
|
||||
{
|
||||
}
|
||||
|
||||
public FileSecurity(String fileName, AccessControlSections includeSections)
|
||||
public FileSecurity(string fileName, AccessControlSections includeSections)
|
||||
: base(false, fileName, includeSections, false)
|
||||
{
|
||||
String fullPath = Path.GetFullPath(fileName);
|
||||
string fullPath = Path.GetFullPath(fileName);
|
||||
}
|
||||
|
||||
// Warning! Be exceedingly careful with this constructor. Do not make
|
||||
// it public. We don't want to get into a situation where someone can
|
||||
// pass in the string foo.txt and a handle to bar.exe, and we do a
|
||||
// demand on the wrong file name.
|
||||
internal FileSecurity(SafeFileHandle handle, String fullPath, AccessControlSections includeSections)
|
||||
internal FileSecurity(SafeFileHandle handle, string fullPath, AccessControlSections includeSections)
|
||||
: base(false, handle, includeSections, false)
|
||||
{
|
||||
}
|
||||
@@ -639,10 +639,10 @@ namespace System.Security.AccessControl
|
||||
{
|
||||
}
|
||||
|
||||
public DirectorySecurity(String name, AccessControlSections includeSections)
|
||||
public DirectorySecurity(string name, AccessControlSections includeSections)
|
||||
: base(true, name, includeSections, true)
|
||||
{
|
||||
String fullPath = Path.GetFullPath(name);
|
||||
string fullPath = Path.GetFullPath(name);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user