BaconBuilder.Model.Reader.HeadProperties C# (CSharp) Method

HeadProperties() public method

public HeadProperties ( XmlReader reader ) : string>.Dictionary
reader XmlReader
return string>.Dictionary
        public Dictionary<string, string> HeadProperties(XmlReader reader)
        {
            var result = new Dictionary<string, string>();
            while (reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Comment && reader.HasValue)
                {
                    string[] data = reader.Value.Split('=');
                    if (data.Length == 2)
                    {
                        result.Add(data[0].Trim(), data[1].Trim());
                    }
                }
            }
            return result;
        }