From 7bb95a16586ef571c37cabe57f6080c21d8ed920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 11 Jun 2015 19:18:33 +0300 Subject: [PATCH] Add LintExt and move GetFieldValues() --- OpenRA.Mods.Common/Lint/LintExts.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Lint/LintExts.cs b/OpenRA.Mods.Common/Lint/LintExts.cs index 04dfecb045..e7dcb5d5d1 100644 --- a/OpenRA.Mods.Common/Lint/LintExts.cs +++ b/OpenRA.Mods.Common/Lint/LintExts.cs @@ -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);