public bool ShouldSerializeNamedObjects() { return NamedObjects != null && NamedObjects.Count != 0; }