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)); }
public static bool IsSingle(this AssetDeclarationAttributeBase attribute) { return(attribute.GetIsSingleFile() || attribute.GetDeclarationType() == DeclarationType.Single); }