fix: reformat using C# rules

This commit is contained in:
ZavaruKitsu
2022-10-08 19:26:34 +03:00
parent a731e2a8d0
commit 5ab15621a0
180 changed files with 13136 additions and 13081 deletions
@@ -1,13 +1,11 @@
using System;
namespace TelegramBotBase.Exceptions
{
public class MaxLengthException : Exception
{
public MaxLengthException(int length) : base($"Your messages with a length of {length} is too long for telegram. Actually is {Constants.Telegram.MaxMessageLength} characters allowed. Please split it.")
{
}
namespace TelegramBotBase.Exceptions;
public class MaxLengthException : Exception
{
public MaxLengthException(int length) : base(
$"Your messages with a length of {length} is too long for telegram. Actually is {Constants.Telegram.MaxMessageLength} characters allowed. Please split it.")
{
}
}
}
@@ -1,14 +1,14 @@
using System;
namespace TelegramBotBase.Exceptions
namespace TelegramBotBase.Exceptions;
public class MaximumColsException : Exception
{
public class MaximumColsException : Exception
{
public int Value { get; set; }
public int Value { get; set; }
public int Maximum { get; set; }
public int Maximum { get; set; }
public override string Message => $"You have exceeded the maximum of columns by {Value.ToString()} / {Maximum.ToString()}";
}
}
public override string Message =>
$"You have exceeded the maximum of columns by {Value.ToString()} / {Maximum.ToString()}";
}
@@ -1,14 +1,14 @@
using System;
namespace TelegramBotBase.Exceptions
namespace TelegramBotBase.Exceptions;
public class MaximumRowsReachedException : Exception
{
public class MaximumRowsReachedException : Exception
{
public int Value { get; set; }
public int Value { get; set; }
public int Maximum { get; set; }
public int Maximum { get; set; }
public override string Message => $"You have exceeded the maximum of rows by {Value.ToString()} / {Maximum.ToString()}";
}
}
public override string Message =>
$"You have exceeded the maximum of rows by {Value.ToString()} / {Maximum.ToString()}";
}