コード例 #1
0
        private string CheckPropertyIsSet(string propertyName)
        {
            jarManifestBuilder.TryGetValue(propertyName, out string value);

            if (string.IsNullOrWhiteSpace(value))
            {
                throw new InvalidOperationException(string.Format(System.Globalization.CultureInfo.CurrentCulture,
                                                                  UIResources.Builder_Error_RequiredPropertyMissing, propertyName));
            }
            return(value);
        }