private static List<string> GetHiddenTags(SwaggerWcfSection config) { return config.Tags == null ? new List<string>() : config.Tags.OfType<TagElement>() .Where(t => t.Visibile.Equals(false)) .Select(t => t.Name) .ToList(); }
private static IReadOnlyDictionary<string, string> GetSettings(SwaggerWcfSection config) { return config.Settings == null ? new Dictionary<string, string>() : config.Settings.OfType<SettingElement>().ToDictionary(se => se.Name, se => se.Value); }