public void SetStorageItems(IEnumerable <IStorageItem> storageItems) { if (storageItems == null || !storageItems.Any()) { throw new ArgumentException("The Parameter StorageItems is null or does not contains any element.", nameof(storageItems)); } Items.Add(ShareSourceFeatureItem.FromStorageItems(storageItems)); }
public void SetStorageItems(IEnumerable <IStorageItem> storageItems) { if (storageItems == null || !storageItems.Any()) { throw new ArgumentException("ExceptionShareSourceFeatureDataStorageItemsIsNullOrEmpty".GetLocalized(), nameof(storageItems)); } Items.Add(ShareSourceFeatureItem.FromStorageItems(storageItems)); }