Esempio n. 1
0
        public ISettingsSection GetOrCreateSection(string guid)
        {
            if (guid == null)
            {
                throw new ArgumentNullException(nameof(guid));
            }


            var section = _sections.FirstOrDefault(p => p.GUID == guid);

            if (section == null)
            {
                section = new SettingsSection(guid);

                _sections.Add(section);
            }

            return(section);
        }