/// <summary> /// Returns a <see cref="IFacetsFacet" /> impl provided that at least one valid /// factory <see cref="IFacetsFacet.FacetFactories" /> was specified. /// </summary> private static IFacetsFacet Create(FacetsAttribute attribute, IFacetHolder holder) { if (attribute == null) { return null; } var facetsFacetAnnotation = new FacetsFacetAnnotation(attribute, holder); return facetsFacetAnnotation.FacetFactories.Length > 0 ? facetsFacetAnnotation : null; }
public FacetsFacetAnnotation(FacetsAttribute attribute, IFacetHolder holder) : base(attribute.FacetFactoryNames, attribute.FacetFactoryClasses, holder) {}