public bool VerifyAllowedToAppend(IEnumerable <Annotation> copyOfExistingToAddTo, Annotation newItem) { if (newItem == null) { return(false); } return(!EnforcePolicy || AnnotationCollectionPolicy.IsAppendAllowed(copyOfExistingToAddTo, newItem)); }
public bool VerifyAllowedToAppend(Annotation newItem) => AnnotationCollectionPolicy.IsAppendAllowed(this, newItem);