fix nlua build with analyzers

This commit is contained in:
Morilli 2025-07-07 18:11:06 +02:00
parent e4cf5d2955
commit b01ae4b757
2 changed files with 14 additions and 14 deletions

View File

@ -903,7 +903,7 @@ namespace NLua
}
/// <summary>
/// Gets a numeric field of the table or userdata corresponding the the provided reference
/// Gets a numeric field of the table or userdata corresponding to the provided reference
/// </summary>
internal object GetObject(int reference, object field)
{
@ -917,7 +917,7 @@ namespace NLua
}
/// <summary>
/// Sets a field of the table or userdata corresponding the the provided reference
/// Sets a field of the table or userdata corresponding to the provided reference
/// to the provided value
/// </summary>
internal void SetObject(int reference, string field, object val)
@ -929,7 +929,7 @@ namespace NLua
}
/// <summary>
/// Sets a numeric field of the table or userdata corresponding the the provided reference
/// Sets a numeric field of the table or userdata corresponding to the provided reference
/// to the provided value
/// </summary>
internal void SetObject(int reference, object field, object val)

View File

@ -1052,7 +1052,7 @@ namespace NLua
{
var members = targetType.GetMember(fieldName, bindingType | BindingFlags.Public);
if (members.Length <= 0)
if (members.Length is 0)
{
detailMessage = "field or property '" + fieldName + "' does not exist";
return false;