public void SetText(string text) { if (string.IsNullOrEmpty(text)) { throw new ArgumentException("The parameter title can not be null or empty.", nameof(text)); } Items.Add(ShareSourceFeatureItem.FromText(text)); }
public void SetText(string text) { if (string.IsNullOrEmpty(text)) { throw new ArgumentException("ExceptionShareSourceFeatureDataTitleIsNullOrEmpty".GetLocalized(), nameof(text)); } Items.Add(ShareSourceFeatureItem.FromText(text)); }