20231015
This commit is contained in:
parent
5041dd07fb
commit
c3d71a6a63
@ -1,11 +1,15 @@
|
||||
namespace anbs_cp.Structs;
|
||||
using System.Collections;
|
||||
|
||||
using anbs_cp.Structs;
|
||||
|
||||
namespace anbs_cp.Classes;
|
||||
|
||||
/// <summary>
|
||||
/// Список из пара ключ-значение
|
||||
/// </summary>
|
||||
/// <typeparam name="TK">Тип ключа</typeparam>
|
||||
/// <typeparam name="TV">Тип значения</typeparam>
|
||||
public struct KeyValueList<TK, TV>
|
||||
public class KeyValueList<TK, TV>: IEnumerable<KeyValue<TK, TV>>
|
||||
{
|
||||
/// <summary>
|
||||
/// Хранение значений
|
||||
@ -142,4 +146,18 @@ public struct KeyValueList<TK, TV>
|
||||
public bool Contains (TK key) => Keys.Any(keyParam => keyParam!.Equals(key));
|
||||
|
||||
#endregion
|
||||
|
||||
#region Реализация интерфейса IEnumerable<KeyValue<TK, TV>>
|
||||
/// <summary>
|
||||
/// Получаю <see cref="IEnumerator"/>
|
||||
/// </summary>
|
||||
/// <returns><see cref="IEnumerator"/></returns>
|
||||
public IEnumerator<KeyValue<TK, TV>> GetEnumerator () => _list.GetEnumerator();
|
||||
|
||||
/// <summary>
|
||||
/// Получаю <see cref="IEnumerator"/>
|
||||
/// </summary>
|
||||
/// <returns><see cref="IEnumerator"/></returns>
|
||||
IEnumerator IEnumerable.GetEnumerator () => GetEnumerator();
|
||||
#endregion
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Version>2023.908.1</Version>
|
||||
<Version>2023.1015.0</Version>
|
||||
<Authors>Александр Бабаев</Authors>
|
||||
<Product>Набор компонентов ANB Software</Product>
|
||||
<Description>Библиотека полезных методов языка C#</Description>
|
||||
|
@ -19,7 +19,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Dapper" Version="2.0.151" />
|
||||
<PackageReference Include="Dapper" Version="2.1.11" />
|
||||
<PackageReference Include="MySqlConnector" Version="2.2.7" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="7.0.10" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Cryptography.KeyDerivation" Version="7.0.12" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Html.Abstractions" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.TagHelpers" Version="2.2.0" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user