去除引用common.props
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
using JetBrains.Annotations;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Tnb.Common;
|
||||
@@ -159,11 +156,11 @@ public static class Check
|
||||
short value,
|
||||
string parameterName)
|
||||
{
|
||||
if(value == 0)
|
||||
if (value == 0)
|
||||
{
|
||||
throw new ArgumentException($"{parameterName} is equal to zero");
|
||||
}
|
||||
else if(value < 0)
|
||||
else if (value < 0)
|
||||
{
|
||||
throw new ArgumentException($"{parameterName} is less than zero");
|
||||
}
|
||||
@@ -251,7 +248,7 @@ public static class Check
|
||||
Int16 minimumValue,
|
||||
Int16 maximumValue = Int16.MaxValue)
|
||||
{
|
||||
if(value < minimumValue || value > maximumValue)
|
||||
if (value < minimumValue || value > maximumValue)
|
||||
{
|
||||
throw new ArgumentException($"{parameterName} is out of range min: {minimumValue} - max: {maximumValue}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user