< Summary - PropertyGridHelpers Code Coverage

Information
Class: PropertyGridHelpers.UIEditors.AutoCompleteComboBoxEditor<T>
Assembly: PropertyGridHelpers
File(s): c:\agent\_work\9\s\Code\PropertyGridHelpers\UIEditors\AutoCompleteComboBoxEditorT.cs
Tag: PropertyGridHelpers Build_2025.7.15.1_#485
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 29
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100

Metrics

MethodBlocks covered Blocks not covered
AutoCompleteComboBoxEditor()40

File(s)

c:\agent\_work\9\s\Code\PropertyGridHelpers\UIEditors\AutoCompleteComboBoxEditorT.cs

#LineLine coverage
 1using System.ComponentModel;
 2using System.Windows.Forms;
 3
 4namespace PropertyGridHelpers.UIEditors
 5{
 6    /// <summary>
 7    /// Provides a type-safe <see cref="AutoCompleteComboBoxEditor"/> for editing enum-based
 8    /// values in a <see cref="PropertyGrid"/>. This generic variant allows specifying a custom
 9    /// <see cref="EnumConverter"/> to control display and parsing behavior.
 10    /// </summary>
 11    /// <typeparam name="T">
 12    /// A custom <see cref="EnumConverter"/> type that provides conversion logic for the target enum.
 13    /// </typeparam>
 14    /// <remarks>
 15    /// This editor automatically creates an instance of <typeparamref name="T"/> and
 16    /// assigns it to the <see cref="AutoCompleteComboBoxEditor.Converter"/> property, allowing
 17    /// for customized enum text representation in the drop-down.
 18    /// </remarks>
 19    /// <seealso cref="AutoCompleteComboBoxEditor"/>
 20    public class AutoCompleteComboBoxEditor<T> : AutoCompleteComboBoxEditor
 21        where T : EnumConverter, new()
 22    {
 23        /// <summary>
 24        /// Initializes a new instance of the <see cref="AutoCompleteComboBoxEditor{T}"/> class.
 25        /// </summary>
 1626        public AutoCompleteComboBoxEditor() =>
 1627            Converter = new T();
 28    }
 29}

Methods/Properties

AutoCompleteComboBoxEditor()