Example #1
0
        /// <exception cref="System.ArgumentException" />
        public override void ReadFrom(YSection section)
        {
            base.ReadFrom(section);
            this.Logger.Trace($"executing {nameof(ItemGroup)}.{nameof(this.ReadFrom)} ({this.Name})...");
            var kind = ((FolderKind)(section.GetNodeAsNumber("FolderKind")));

            _         = kind == FolderKind.Invalid && Enum.TryParse(section.GetNodeAsString("FolderKind"), out kind);
            this.Kind = kind;
            this.Logger.Trace($"completed {nameof(ItemGroup)}.{nameof(this.ReadFrom)} ({this.Name})...");
        }