完全清除Resource依赖, 目前可以直接使用源码

This commit is contained in:
2025-10-08 12:00:42 +08:00
parent 0d4d4b75bb
commit a09b3c1eb1
31 changed files with 49 additions and 2926 deletions

View File

@@ -1,5 +1,4 @@
using Flee.InternalTypes;
using Flee.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -65,7 +64,7 @@ namespace Flee.PublicTypes
if (_myVariables.ContainsKey(name) == true)
{
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.VariableWithNameAlreadyDefined, name);
string msg = Utility.GetGeneralErrorMessage("VariableWithNameAlreadyDefined", name);
throw new ArgumentException(msg);
}
@@ -96,7 +95,7 @@ namespace Flee.PublicTypes
if (success == false & throwOnNotFound == true)
{
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.UndefinedVariable, name);
string msg = Utility.GetGeneralErrorMessage("UndefinedVariable", name);
throw new ArgumentException(msg);
}
else
@@ -175,7 +174,7 @@ namespace Flee.PublicTypes
if (requiredType.IsAssignableFrom(valueType) == false)
{
string msg = Utility.GetGeneralErrorMessage(GeneralErrorResourceKeys.VariableValueNotAssignableToType, valueType.Name, requiredType.Name);
string msg = Utility.GetGeneralErrorMessage("VariableValueNotAssignableToType", valueType.Name, requiredType.Name);
throw new ArgumentException(msg);
}
}