When I try to serialize this collection, the name property is not serialized.
public class BCollection : List where T : B_Button
{
In many serializers (and data-binding, in fact), an object is either an entity or (exclusive) a list; having properties on a list is not commonly supported. I would refactor to encapsulate the list:
public class Foo {
public string Name {get;set;}
private readonly List items = new List();
public List Items { get { return items; } }
}
Also; how would you plan on representing that in JSON? IIRC the JSON array syntax doesn't allow for extra properties either.