public void AddChild(GenInfo data) { data.Parent = this; if (data is SectionInfo) { if (_sections == null) _sections = new GenInfoCollection(); _sections[data.Name] = data; } else { if (_groups == null) _groups = new GenInfoCollection(); _groups[data.Name] = data; } }
public void AddChild(GenInfo data) { data.Parent = this; if (data is SectionInfo) { if (_sections == null) { _sections = new GenInfoCollection(); } _sections[data.Name] = data; } else { if (_groups == null) { _groups = new GenInfoCollection(); } _groups[data.Name] = data; } }