slight cleanup of some Linq logic in HeaderKeys.cs, a tiny bit less memory usage as a bonus
This commit is contained in:
parent
2c0804eede
commit
0da1e900df
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue