public static void WriteResourceSet(ODataWriter writer, my.ODataResourceSetWrapper resourceSetWrapper) { writer.WriteStart(resourceSetWrapper.ResourceSet); if (resourceSetWrapper.Resources != null) { foreach (var resourceWrapper in resourceSetWrapper.Resources) { WriteResource(writer, resourceWrapper); } } writer.WriteEnd(); }