mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 16:58:01 +01:00
Added ToList method to the interface IListDataSource to return the source as IList.
This commit is contained in:
@@ -63,6 +63,12 @@ namespace Terminal.Gui {
|
||||
/// <param name="item">Item index.</param>
|
||||
/// <param name="value">If set to <c>true</c> value.</param>
|
||||
void SetMark (int item, bool value);
|
||||
|
||||
/// <summary>
|
||||
/// Return the source as IList.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IList ToList ();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -574,5 +580,10 @@ namespace Terminal.Gui {
|
||||
if (item >= 0 && item < count)
|
||||
marks [item] = value;
|
||||
}
|
||||
|
||||
public IList ToList ()
|
||||
{
|
||||
return src;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user