private void AddRegionIfExists(CIASection section, CIARegion ciaRegion) { if (ciaRegion.Size != 0) { this.Regions[section] = ciaRegion; } }
public static void AddIfExists(this List <CIARegion> list, CIARegion region) { if (region.Size != 0) { list.Add(region); } }