Example #1
0
        public string PropertiesAsString()
        {
            if (_buildProperties == null)
            {
                return("Section not found in appsettings");
            }
            var properties = new List <string>();

            foreach (var property in _buildProperties.GetType().GetProperties())
            {
                properties.Add($"{property.Name}: {property.GetValue(_buildProperties)}");
            }
            return(string.Join(Environment.NewLine, properties));
        }