ПИбд-12 Савинов Роман Дмитриевич лабораторная №6 #13

Closed
zum wants to merge 4 commits from Lab6 into Lab5
2 changed files with 3 additions and 7 deletions
Showing only changes of commit 34bc9b98b9 - Show all commits

View File

@ -139,11 +139,7 @@ public class StorageCollection<T>
using FileStream fs = new(filename, FileMode.Create);
using StreamWriter streamWriter = new StreamWriter(fs);
string info = sb.ToString();
for (int i = 0; i < info.Length; i++)
{
streamWriter.Write(info[i]);
}
streamWriter.Write(sb.ToString());
return true;
}

View File

@ -40,9 +40,9 @@ public static class ExtentionDrawningWarPlane
/// </summary>
/// <param name="drawningCar">Сохраняемый объект</param>
/// <returns>Строка с данными по объекту</returns>
public static string GetDataForSave(this DrawningWarPlane drawningCar)
public static string GetDataForSave(this DrawningWarPlane drawningWarPlane)
{
string[]? array = drawningCar?.EntityWarPlane?.GetStringRepresentation();
string[]? array = drawningWarPlane?.EntityWarPlane?.GetStringRepresentation();
if (array == null)
{