private static bool IsExternalInstanceList(FieldInfo field)
        {
            ExternalInstanceList instanceList = null;

            foreach (object attribute in field.GetCustomAttributes(true))
            {
                instanceList = (attribute as ExternalInstanceList);
                if (instanceList != null)
                {
                    break;
                }
            }
            if (instanceList == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
        private static bool IsExternalInstance(PropertyInfo property)
        {
            ExternalInstance     instance     = null;
            ExternalInstanceList instanceList = null;

            foreach (object attribute in property.GetCustomAttributes(true))
            {
                instance     = (attribute as ExternalInstance);
                instanceList = (attribute as ExternalInstanceList);
                if (instance != null || instanceList != null)
                {
                    break;
                }
            }
            if (instance == null && instanceList == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }