-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
public class EnumerableNode : IEnumerable<SimpleNode>
{
private List<SimpleNode> _nodes = new List<SimpleNode>();
public void Add(SimpleNode node)
{
_nodes.Add(node);
}
public IEnumerator<SimpleNode> GetEnumerator()
{
return _nodes.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
public class SimpleNode
{
public string Name { get; set; }
public int Value { get; set; }
}
var reader = new YamlReader();
var data = reader.Read<EnumerableNode>(lines);
This can't be mapped because the EnumerableNode is not a list. The Errormessage is not very clear on why this can't be made
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working