sharee.bike-App/TINKLib/Model/FilterCollectionStore.cs

14 lines
505 B
C#
Raw Normal View History

2022-08-30 15:42:25 +02:00
using System.Collections.Generic;
2021-05-13 20:03:07 +02:00
using System.Linq;
namespace TINK.Model
{
2022-09-06 16:08:19 +02:00
public static class FilterCollectionStore
{
/// <summary> Writes filter collection state to string. </summary>
/// <returns> Filter collection to write to string.</returns>
/// <param name="p_oDictionary">P o dictionary.</param>
2021-05-13 20:03:07 +02:00
public static string ToString(this IDictionary<string, FilterState> p_oDictionary) => "{" + string.Join(", ", p_oDictionary.Select(x => "(" + x.Key + "= " + x.Value + ")")) + "}";
2022-09-06 16:08:19 +02:00
}
2021-05-13 20:03:07 +02:00
}