internal static bool IsPrimitive(ES3SpecialByte b) { switch (b) { case ES3SpecialByte.Bool: case ES3SpecialByte.Byte: case ES3SpecialByte.Sbyte: case ES3SpecialByte.Char: case ES3SpecialByte.Decimal: case ES3SpecialByte.Double: case ES3SpecialByte.Float: case ES3SpecialByte.Int: case ES3SpecialByte.Uint: case ES3SpecialByte.Long: case ES3SpecialByte.Ulong: case ES3SpecialByte.Short: case ES3SpecialByte.Ushort: case ES3SpecialByte.String: case ES3SpecialByte.ByteArray: return(true); default: return(false); } }
internal static Type ByteToType(ES3SpecialByte b) { return(ByteToType((byte)b)); }