IKVM.Internal.DotNetTypeWrapper.AttributeAnnotationTypeWrapper.IsSupportedType C# (CSharp) Method

IsSupportedType() private static method

private static IsSupportedType ( Type type ) : bool
type IKVM.Reflection.Type
return bool
            private static bool IsSupportedType(Type type)
            {
                // Java annotations only support one-dimensional arrays
                if (ReflectUtil.IsVector(type))
                {
                    type = type.GetElementType();
                }
                return type == Types.String
                    || type == Types.Boolean
                    || type == Types.Byte
                    || type == Types.Char
                    || type == Types.Int16
                    || type == Types.Int32
                    || type == Types.Single
                    || type == Types.Int64
                    || type == Types.Double
                    || type == Types.Type
                    || type.IsEnum;
            }