Смена местами get и set

This commit is contained in:
Павел Ладягин 2024-04-14 12:27:49 +04:00
parent ac10e0d6e7
commit 179f5b9b94
2 changed files with 13 additions and 12 deletions

View File

@ -21,6 +21,11 @@ namespace ProjectAirplaneWithRadar.CollectionGenericObjects
public int Count => _collection.Count;
public int MaxCount {
get
{
return _maxCount;
}
set
{
if (value > 0)
@ -28,10 +33,6 @@ namespace ProjectAirplaneWithRadar.CollectionGenericObjects
_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)
@ -31,11 +36,6 @@ namespace ProjectAirplaneWithRadar.CollectionGenericObjects
}
}
}
get
{
return _collection.Length;
}
}
public CollectionType GetCollectionType => CollectionType.Massive;