1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 08:30:25 +02:00
Beef/IDE/mintest/minlib/src/System/TClass.bf

21 lines
276 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
#pragma warning disable 168
using System;
2020-05-22 06:40:06 -07:00
interface IItem
2019-08-23 11:56:54 -07:00
{
2020-05-22 06:40:06 -07:00
public int Id { get; set; }
}
2020-05-22 06:40:06 -07:00
class Mintesto
{
2020-05-22 06:40:06 -07:00
public static void Dispose<T>(mut T val) where T : IDisposable
{
2020-05-22 06:40:06 -07:00
val.Dispose();
}
2020-05-22 06:40:06 -07:00
public static int Get<T>(mut T val) where T : IItem
{
return val.Id;
}
2019-08-23 11:56:54 -07:00
}