// PRIVATE ///////////////////////////////////////////////////////////////////////////////////////////////// private static List <TImmutableModel> CopyList(MutableModelList <TImmutableModel, TMutableModel> mutableModelList) { var immutableList = new List <TImmutableModel>(); foreach (var mutableModel in mutableModelList) { immutableList.Add((TImmutableModel)mutableModel.ToIImmutableModel()); } return(immutableList); }
public ImmutableModelList(MutableModelList <TImmutableModel, TMutableModel> list) : base(CopyList(list)) { }