public void Deserialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer) { _dataModels.Clear(); IEnumerable <IModuleDataModel> dataModels = dataModelCollectionSerializer.Read(); foreach (IModuleDataModel dataModel in dataModels) { _Add(dataModel, dataModel.ModuleTypeId, dataModel.ModuleInstanceId); } }
public void Serialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer) { dataModelCollectionSerializer.Write(_dataModels.Values.ToList()); }
public void Serialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer) { dataModelCollectionSerializer.Write(_dataModels); }
public void Deserialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer) { _dataModels.Clear(); IEnumerable<IModuleDataModel> dataModels = dataModelCollectionSerializer.Read(); foreach (IModuleDataModel dataModel in dataModels) { _Add(dataModel, dataModel.ModuleTypeId, dataModel.ModuleInstanceId); } }