Fix type being used in SetField

This commit is contained in:
Matt Nadareski
2023-08-11 22:30:02 -04:00
parent 3e2810079e
commit 1dad2f0e99

View File

@@ -14,7 +14,7 @@ namespace SabreTools.Filter
if (dictionaryBase == null || fieldName == null)
return false;
var constants = TypeHelper.GetConstants(typeof(DictionaryBase));
var constants = TypeHelper.GetConstants(dictionaryBase.GetType());
if (constants == null || !constants.Any(c => string.Equals(c, fieldName, StringComparison.InvariantCultureIgnoreCase)))
return false;