Analisys manager window was added

This commit is contained in:
RedikultsevEvg
2024-08-20 20:38:01 +05:00
parent 45dbd7a1ca
commit c1b9f80a96
50 changed files with 1036 additions and 281 deletions

View File

@@ -25,7 +25,7 @@ namespace StructureHelperCommon.Services
public static void CompareTypes(object targetObject, object sourceObject)
{
IsNull(targetObject, "target object");
IsNull(targetObject, "source object");
IsNull(sourceObject, "source object");
if (targetObject.GetType() != sourceObject.GetType())
{
throw new StructureHelperException
@@ -34,7 +34,10 @@ namespace StructureHelperCommon.Services
}
public static void IsNull(object item, string message = "")
{
if (item is null) { throw new StructureHelperException(ErrorStrings.ParameterIsNull + message); }
if (item is null)
{
throw new StructureHelperException(ErrorStrings.ParameterIsNull + ": "+ message);
}
}
public static void CheckType(object sourceObject, Type targetType)