Beispiel #1
0
        // 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);
        }
Beispiel #2
0
 public ImmutableModelList(MutableModelList <TImmutableModel, TMutableModel> list)
     : base(CopyList(list))
 {
 }