fix nlua build with analyzers
This commit is contained in:
parent
e4cf5d2955
commit
b01ae4b757
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue