add a test workflow for dotnet

This commit is contained in:
UbitUmarov
2023-03-19 21:03:24 +00:00
parent b0f28dc54f
commit f8e7e45965
2 changed files with 64 additions and 1 deletions

View File

@@ -943,7 +943,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
return (float)dov;
if (o is LSL_Types.LSLString lso)
return Convert.ToSingle(lso.m_string);
throw new InvalidCastException(@"LSL float expected but {o is not null ? o.GetType().Name : ""null"")} given");
throw new InvalidCastException(string.Format($"LSL float expected but {0} given", o is not null ? o.GetType().Name : "null"));
}
public LSL_Types.LSLString GetLSLStringItem(int itemIndex)