PIbd-13_Ladyagin_P.D. LabWork06 Simple #8

Closed
F1rsTTeaM wants to merge 8 commits from LabWork06.1 into LabWork05.1
2 changed files with 13 additions and 12 deletions
Showing only changes of commit 179f5b9b94 - Show all commits

View File

@ -20,18 +20,19 @@ namespace ProjectAirplaneWithRadar.CollectionGenericObjects
public int Count => _collection.Count;
public int MaxCount {
public int MaxCount {
get
{
return _maxCount;
}
set
{
if (value > 0)
{
_maxCount = value;
}
}
get
{
return _maxCount;
}
}
}
public CollectionType GetCollectionType => CollectionType.List;

View File

@ -17,6 +17,11 @@ namespace ProjectAirplaneWithRadar.CollectionGenericObjects
public int MaxCount
{
get
{
return _collection.Length;
}
set
{
if (value > 0)
@ -30,12 +35,7 @@ namespace ProjectAirplaneWithRadar.CollectionGenericObjects
_collection = new T?[value];
}
}
}
get
{
return _collection.Length;
}
}
}
public CollectionType GetCollectionType => CollectionType.Massive;