Beispiel #1
0
        public static bool IsValid(this AssetDeclarationAttributeBase attribute)
        {
            Init();

            if (attribute == null)
            {
                return(false);
            }

            if (Attributes == null)
            {
                return(false);
            }

            return(Attributes.Exists(a => a != null &&
                                     Equals(a, attribute) &&
                                     a.Group == attribute.Group));
        }
Beispiel #2
0
 public static bool IsSingle(this AssetDeclarationAttributeBase attribute)
 {
     return(attribute.GetIsSingleFile() ||
            attribute.GetDeclarationType() == DeclarationType.Single);
 }