private static object[] GetCustomAttributes(IAttributes attributes)
 {
     if (attributes == null)
         return new object[0];
     var list = new ArrayList<object>();
     foreach (var attr in attributes.Attributes())
     {
         list.Add(GetAttribute(attr));
     }
     return list.ToArray();
 }
        private static object[] GetCustomAttributes(IAttributes attributes)
        {
            if (attributes == null)
            {
                return(new object[0]);
            }
            var list = new ArrayList <object>();

            foreach (var attr in attributes.Attributes())
            {
                list.Add(GetAttribute(attr));
            }
            return(list.ToArray());
        }
        private static bool IsDefined(Type attributeType, IAttributes attributes)
        {
            if (attributes == null)
            {
                return(false);
            }

            foreach (var attr in attributes.Attributes())
            {
                if (attributeType.JavaIsAssignableFrom(attr.AttributeType()))
                {
                    return(true);
                }
            }
            return(false);
        }
        private static object[] GetCustomAttributes(Type attributeType, IAttributes attributes)
        {
            if (attributes == null)
            {
                return(new object[0]);
            }
            var list = new ArrayList <object>();

            foreach (var attr in attributes.Attributes())
            {
                if (attributeType.JavaIsAssignableFrom(attr.AttributeType()))
                {
                    list.Add(GetAttribute(attr));
                }
            }
            return(list.ToArray());
        }
        private static object[] GetCustomAttributes(Type attributeType, IAttributes attributes)
        {
            if (attributes == null)
                return new object[0];
            var list = new ArrayList<object>();

            foreach (var attr in attributes.Attributes())
            {
                if (attributeType.JavaIsAssignableFrom(attr.AttributeType()))
                {
                    list.Add(GetAttribute(attr));
                }
            }
            return list.ToArray();
        }
        private static bool IsDefined(Type attributeType, IAttributes attributes)
        {
            if (attributes == null)
                return false;

            foreach (var attr in attributes.Attributes())
            {
                if (attributeType.JavaIsAssignableFrom(attr.AttributeType()))
                {
                    return true;
                }
            }
            return false;
        }