1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00

Fixed some tooltips, added Link Dependencies, more int-ness

This commit is contained in:
Brian Fiete 2019-12-21 05:48:44 -08:00
parent 939c818581
commit d0e8332150
30 changed files with 180 additions and 432 deletions

View file

@ -26,7 +26,26 @@ namespace System
}
}
public int32 Count
public bool IsEmpty
{
get
{
Object data = Internal.UnsafeCastToObject((void*)(mData & sDataMask));
if (data == null)
return true;
var type = data.GetType();
if (type == typeof(List<T>))
{
var list = (List<T>)data;
return list.Count == 0;
}
return false;
}
}
public int Count
{
get
{
@ -39,7 +58,7 @@ namespace System
if (type == typeof(List<T>))
{
var list = (List<T>)data;
return (int32)list.Count;
return list.Count;
}
return 1;
}