From f659672b1170060444f4c4946453f9f0625fa377 Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Thu, 31 Dec 2020 23:40:33 -0500 Subject: [PATCH] Adding IsArray and IsSizedArray to corlib Type --- BeefLibs/corlib/src/Type.bf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/BeefLibs/corlib/src/Type.bf b/BeefLibs/corlib/src/Type.bf index 34d84bb1..afe6187b 100644 --- a/BeefLibs/corlib/src/Type.bf +++ b/BeefLibs/corlib/src/Type.bf @@ -191,6 +191,22 @@ namespace System } } + public bool IsArray + { + get + { + return (mTypeFlags & TypeFlags.Array) != 0; + } + } + + public bool IsSizedArray + { + get + { + return (mTypeFlags & TypeFlags.SizedArray) != 0; + } + } + public bool IsObject { get