sharee.bike-App/TINKLib/Model/FilterCollectionStore.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

14 lines
505 B
C#

using System.Collections.Generic;
using System.Linq;
namespace TINK.Model
{
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>
public static string ToString(this IDictionary<string, FilterState> p_oDictionary) => "{" + string.Join(", ", p_oDictionary.Select(x => "(" + x.Key + "= " + x.Value + ")")) + "}";
}
}