task2 is complited Some refactoring. Created folders for each components complete task 3 (maybe) some refactoring some refactor some minor fixes minor changes minor fixes minor fixes
20 lines
796 B
C#
20 lines
796 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ComponentLibrary1.limited_text
|
|
{
|
|
[Serializable]
|
|
internal class OutOfRangeException : ApplicationException
|
|
{
|
|
public OutOfRangeException(int min, int max) : base($"Введенное значение не входит в диапазон от {min} до {max}") { }
|
|
public OutOfRangeException() : base() { }
|
|
public OutOfRangeException(string message) : base(message) { }
|
|
public OutOfRangeException(string message, Exception exception) : base(message, exception) { }
|
|
protected OutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context) { }
|
|
}
|
|
}
|