public bool HasMany() { if (this.CollectionMembers.Count > 0) { return(true); } foreach (var kv in this.ComplexMembers) { ComplexObjectActivatorCreator activatorCreator = kv.Value as ComplexObjectActivatorCreator; if (activatorCreator.HasMany()) { return(true); } } return(false); }