Repository: PowerShell/PowerShell
File: src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs (C#)

Code before:
                    continue;
                }
            }
        }
        #endregion Command code

    }

#if !UNIX
    /// <summary>
    /// Provides argument completion for PropertyType parameter.
    /// </summary>
    public class PropertyTypeArgumentCompleter : IArgumentCompleter
    {
        private static readonly CompletionHelpers.CompletionDisplayInfoMapper RegistryPropertyTypeDisplayInfoMapper = registryPropertyType => registryPropertyType switch
        {
            "String" => new(TabCompletionStrings.RegistryStringToolTip, "String"),
            "ExpandString" => new(TabCompletionStrings.RegistryExpandStringToolTip, "ExpandString"),
            "Binary" => new(TabCompletionStrings.RegistryBinaryToolTip, "Binary"),
            "DWord" => new(TabCompletionStrings.RegistryDWordToolTip, "DWord"),
            "MultiString" => new(TabCompletionStrings.RegistryMultiStringToolTip, "MultiString"),
            "QWord" => new(TabCompletionStrings.RegistryQWordToolTip, "QWord"),
            _ => new(TabCompletionStrings.RegistryUnknownToolTip, "Unknown")
        };

        private static readonly IReadOnlyList<string> s_RegistryPropertyTypes = new List<string>(capacity: 6)
        {
            "String",
            "ExpandString",
            "Binary",
            "DWord",
            "MultiString",
            "QWord",
            "Unknown"
        };

        /// <summary>
        /// Returns completion results for PropertyType parameter.
        /// </summary>
        /// <param name="commandName">The command name.</param>
        /// <param name="parameterName">The parameter name.</param>
        /// <param name="wordToComplete">The word to complete.</param>
        /// <param name="commandAst">The command AST.</param>
        /// <param name="fakeBoundParameters">The fake bound parameters.</param>
        /// <returns>List of Completion Results.</returns>
        public IEnumerable<CompletionResult> CompleteArgument(
            string commandName,
            string parameterName,
            string wordToComplete,
            CommandAst commandAst,
            IDictionary fakeBoundParameters)

Review comment (suggestion):

```suggestion
        private static readonly IReadOnlyList<string> s_RegistryPropertyTypes = new List<string>(capacity: 7)
```

Code after:
                    continue;
                }
            }
        }
        #endregion Command code

    }

#if !UNIX
    /// <summary>
    /// Provides argument completion for PropertyType parameter.
    /// </summary>
    public class PropertyTypeArgumentCompleter : IArgumentCompleter
    {
        private static readonly CompletionHelpers.CompletionDisplayInfoMapper RegistryPropertyTypeDisplayInfoMapper = registryPropertyType => registryPropertyType switch
        {
            "String" => (
                ToolTip: TabCompletionStrings.RegistryStringToolTip,
                ListItemText: "String"),
            "ExpandString" => (
                ToolTip: TabCompletionStrings.RegistryExpandStringToolTip,
                ListItemText: "ExpandString"),
            "Binary" => (
                ToolTip: TabCompletionStrings.RegistryBinaryToolTip,
                ListItemText: "Binary"),
            "DWord" => (
                ToolTip: TabCompletionStrings.RegistryDWordToolTip,
                ListItemText: "DWord"),
            "MultiString" => (
                ToolTip: TabCompletionStrings.RegistryMultiStringToolTip,
                ListItemText: "MultiString"),
            "QWord" => (
                ToolTip: TabCompletionStrings.RegistryQWordToolTip,
                ListItemText: "QWord"),
            _ => (
                ToolTip: TabCompletionStrings.RegistryUnknownToolTip,
                ListItemText: "Unknown"),
        };

        private static readonly IReadOnlyList<string> s_RegistryPropertyTypes = new List<string>(capacity: 7)
        {
            "String",
            "ExpandString",
            "Binary",
            "DWord",
            "MultiString",
            "QWord",
            "Unknown"
        };

        /// <summary>