mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Change comment and element text to meet MS standards (#11304)
This commit is contained in:
committed by
Aditya Patwardhan
parent
6e4da244c5
commit
d523d55739
+1
-1
@@ -1199,7 +1199,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
Dbg.Assert(parameter.Attributes == null || parameter.Attributes.Count == 0,
|
||||
"Attributes shouldn't get rehydrated");
|
||||
|
||||
// sanitize - remove type constraint that are not whitelisted
|
||||
// sanitize - remove type constraint that are not allowed
|
||||
if (!IsSafeTypeConstraint(parameter.ParameterType))
|
||||
{
|
||||
parameter.ParameterType = null;
|
||||
|
||||
@@ -358,7 +358,7 @@ namespace Microsoft.PowerShell
|
||||
#if UNIX
|
||||
else if (char.IsControl(keyInfo.KeyChar))
|
||||
{
|
||||
// blacklist control characters
|
||||
// deny list control characters
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
@@ -1785,7 +1785,7 @@ namespace Microsoft.PowerShell
|
||||
|
||||
if (char.IsControl(keyInfo.KeyChar))
|
||||
{
|
||||
// blacklist control characters
|
||||
// deny list control characters
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace System.Management.Automation
|
||||
// - Value: strong name of the TPA that contains the type represented by Key.
|
||||
private readonly Dictionary<string, string> _coreClrTypeCatalog;
|
||||
private readonly Lazy<HashSet<string>> _availableDotNetAssemblyNames;
|
||||
private readonly HashSet<string> _blackListedAssemblies = new HashSet<string>(StringComparer.OrdinalIgnoreCase){
|
||||
private readonly HashSet<string> _denyListedAssemblies = new HashSet<string>(StringComparer.OrdinalIgnoreCase){
|
||||
"System.Windows.Forms"
|
||||
};
|
||||
|
||||
@@ -331,7 +331,7 @@ namespace System.Management.Automation
|
||||
private bool TryFindInGAC(AssemblyName assemblyName, out string assemblyFilePath)
|
||||
{
|
||||
assemblyFilePath = null;
|
||||
if (_blackListedAssemblies.Contains(assemblyName.Name))
|
||||
if (_denyListedAssemblies.Contains(assemblyName.Name))
|
||||
{
|
||||
// DotNet catches and throws a new exception with no inner exception
|
||||
// We cannot change the message DotNet returns.
|
||||
|
||||
Reference in New Issue
Block a user