From 8a625c8985158ac2320c07e969708514385f95da Mon Sep 17 00:00:00 2001 From: Raimund Andree Date: Sat, 10 Oct 2026 23:31:16 +0000 Subject: [PATCH] fix(items): qualify System in the culture scope of Get-ChildItem2 The class has the parameter System, so a name that starts with System resolves to the property inside it; the build of the previous commit failed with CS0120. The scope uses global::System, like the rest of the file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant --- NTFSSecurity/ItemCmdlets/GetChildItem2.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NTFSSecurity/ItemCmdlets/GetChildItem2.cs b/NTFSSecurity/ItemCmdlets/GetChildItem2.cs index 82dcdf1..66ad109 100644 --- a/NTFSSecurity/ItemCmdlets/GetChildItem2.cs +++ b/NTFSSecurity/ItemCmdlets/GetChildItem2.cs @@ -388,17 +388,17 @@ namespace NTFSSecurity private sealed class InvariantCultureScope : IDisposable { - private readonly System.Globalization.CultureInfo previous; + private readonly global::System.Globalization.CultureInfo previous; public InvariantCultureScope() { - previous = System.Threading.Thread.CurrentThread.CurrentCulture; - System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + previous = global::System.Threading.Thread.CurrentThread.CurrentCulture; + global::System.Threading.Thread.CurrentThread.CurrentCulture = global::System.Globalization.CultureInfo.InvariantCulture; } public void Dispose() { - System.Threading.Thread.CurrentThread.CurrentCulture = previous; + global::System.Threading.Thread.CurrentThread.CurrentCulture = previous; } } }