コード例 #1
0
        public bool VerifyAllowedToAppend(IEnumerable <Annotation> copyOfExistingToAddTo, Annotation newItem)
        {
            if (newItem == null)
            {
                return(false);
            }

            return(!EnforcePolicy || AnnotationCollectionPolicy.IsAppendAllowed(copyOfExistingToAddTo, newItem));
        }
コード例 #2
0
 public bool VerifyAllowedToAppend(Annotation newItem) =>
 AnnotationCollectionPolicy.IsAppendAllowed(this, newItem);