feat: añadido listar repositorio

This commit is contained in:
2024-04-07 20:00:06 -03:00
parent 32bad7f9ac
commit c40f19e7c7
2 changed files with 31 additions and 0 deletions

25
Modelo/Modelo.sln Normal file
View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modelo", "Modelo.csproj", "{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Debug|Any CPU.Build.0 = Debug|Any CPU
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Release|Any CPU.ActiveCfg = Release|Any CPU
{332ACC5A-D3E1-4E7A-A363-BDC1CB370350}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DFA3F249-7A0D-474C-A190-5C2E568DFB1C}
EndGlobalSection
EndGlobal

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.ObjectModel;
namespace Modelo
{
@@ -24,6 +25,11 @@ namespace Modelo
}
}
// Lista el contenido del repositorio
public ReadOnlyCollection<T> Listar(){
return almacen.AsReadOnly();
}
// Añade objetos al almacen
abstract public bool Add(T t);