Add LintExt and move GetFieldValues()
This commit is contained in:
committed by
penev92
parent
2647811a13
commit
7bb95a1658
@@ -10,7 +10,6 @@
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
@@ -20,7 +19,7 @@ namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
var type = fieldInfo.FieldType;
|
||||
if (type == typeof(string))
|
||||
return new string[] { (string)fieldInfo.GetValue(ruleInfo) };
|
||||
return new[] { (string)fieldInfo.GetValue(ruleInfo) };
|
||||
if (type == typeof(string[]))
|
||||
return (string[])fieldInfo.GetValue(ruleInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user