slight cleanup of some Linq logic in HeaderKeys.cs, a tiny bit less memory usage as a bonus

This commit is contained in:
adelikat 2014-02-08 16:29:57 +00:00
parent 2c0804eede
commit 0da1e900df
1 changed files with 3 additions and 3 deletions

View File

@ -36,10 +36,10 @@ namespace BizHawk.Client.Common
public static bool Contains(string val) public static bool Contains(string val)
{ {
var keys = typeof(HeaderKeys).GetFields() return typeof(HeaderKeys)
.GetFields()
.Select(field => field.GetValue(null).ToString()) .Select(field => field.GetValue(null).ToString())
.ToList(); .Contains(val);
return keys.Contains(val);
} }
} }
} }