2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

Generic Record/Resource

This commit is contained in:
2022-06-06 23:19:23 +03:00
parent 499f1e37d2
commit fbae3eb960
4 changed files with 27 additions and 10 deletions

19
Test/MyGenericRecord.cs Normal file
View File

@ -0,0 +1,19 @@
using Esiur.Data;
using Esiur.Resource;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test
{
public class MyGenericRecord<T> : IRecord where T : IResource
{
[Public] public int Start { get; set; }
[Public] public int Needed { get; set; }
[Public] public int Total { get; set; }
[Public] public T[] Results { get; set; }
}
}