public Task HandleSerialization(ClassAndDataPathsPair data) { var type = _modelLoader.GetClassType(data.ClassPath); //var data = _jsonStorage.GetAllData < typeof(type) > (dataPath); return(Task.CompletedTask); }
public void HandleCommandInput() { while (true) { var pair = new ClassAndDataPathsPair(); Console.Write("Path to .cs file: "); var input = Console.ReadLine(); input = @"SampleData\ManagerWarning.cs"; if (input == "close") { return; } pair.ClassPath = input; Console.Write("Path to Json file: "); input = Console.ReadLine(); input = @"SampleData\WarningsList.json"; if (input == "close") { return; } pair.CollectionPath = input; _serializationHandler.HandleSerialization(pair); } }