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:
parent
939c818581
commit
d0e8332150
30 changed files with 180 additions and 432 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue