OpenRA.MapPreview.LoadRuleSection C# (CSharp) Method

LoadRuleSection() private method

private LoadRuleSection ( MiniYaml>.Dictionary yaml, string section ) : MiniYaml
yaml MiniYaml>.Dictionary
section string
return MiniYaml
        MiniYaml LoadRuleSection(Dictionary<string, MiniYaml> yaml, string section)
        {
            MiniYaml node;
            if (!yaml.TryGetValue(section, out node))
                return null;

            return node;
        }