public static void ReverseTo(this Features <IMappingFeature> features, Features <IMappingFeature> reversedFeatures) => features.ForAll(feature => { var reverse = feature.Reverse(); if (reverse != null) { reversedFeatures.Set(reverse); } });
public static void ReverseTo(this Features <IMappingFeature> features, Features <IMappingFeature> reversedFeatures) { if (features.Count == 0) { return; } foreach (var feature in features) { var reverse = feature.Reverse(); if (reverse != null) { reversedFeatures.Set(reverse); } } }