mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 09:11:10 +00:00
Makes Combobox item Value generic
This commit is contained in:
1 parent
98a3a23aab
commit
cf7981aad4
2 files changed
+10
-7
No files matched your search
@@ -3,7 +3,8 @@
|
||||
/// <summary>
|
||||
/// Represents an item in a combobox.
|
||||
/// </summary>
|
||||
public class ComboboxItem
|
||||
/// <typeparam name="TValue">The type used for the <see cref="Value"/> property of the item.</typeparam>
|
||||
public class ComboboxItem<TValue>
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
/// <summary>
|
||||
@@ -14,6 +15,6 @@ public class ComboboxItem
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the item, that is used by the application.
|
||||
/// </summary>
|
||||
public string? Value { get; set; }
|
||||
public TValue? Value { get; set; }
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user